• Tom Lane's avatar
    Okay, I've had it with mktime() bugs. While chasing Torello Querci's · 94a13b8a
    Tom Lane authored
    recent gripe, I discovered not one but two undocumented, undesirable
    behaviors of glibc's mktime.  So, stop using it entirely, and always
    rely on inversion of localtime() to determine the local time zone.
    It's not even very much slower, as it turns out that mktime (at least
    in the glibc implementation) also does repeated reverse-conversions.
    94a13b8a
datetime.c 95.3 KB