• src/xpdev/xpdatetime.c

    From rswindell@VERT to CVS commit on Sat Aug 29 03:46:05 2015
    src/xpdev xpdatetime.c 1.8 1.9
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv31200

    Modified Files:
    xpdatetime.c
    Log Message:
    Fix: xpDateTime_to_time() would convert an xpDateTime_t which was in UTC
    to the local timezone equivalent (not adjusting for offset). Now using timegm() (aka mkgmtime()) to fix this scenario. Times in zones other than the local time zone or UTC are explicitly not supported by this function now (returns INVALID_TIME in that scenario).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Tue Nov 24 17:34:06 2015
    src/xpdev xpdatetime.c 1.10 1.11
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv30221

    Modified Files:
    xpdatetime.c
    Log Message:
    Added one comment.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From sbbs@VERT to CVS commit on Tue Nov 24 22:22:14 2015
    src/xpdev xpdatetime.c 1.11 1.12
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/home/sbbs/src/xpdev

    Modified Files:
    xpdatetime.c
    Log Message:
    Bug-fix: xpTimeZone_local() returned the UTC-offset as they daylight saving time was in effect, year-round, on Linux.

    Use the localtime() tm_gmtoff method of detecting the local time zone offset
    on Linux, don't rely on the global variables 'timezone' and 'daylight'
    behaving as they did in Borland C/DOS. From the Linux man page:
    Note that the variable daylight does not indicate that daylight saving
    time applies right now.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From sbbs@VERT to CVS commit on Tue Nov 24 23:27:07 2015
    src/xpdev xpdatetime.c 1.12 1.13
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/home/sbbs/src/xpdev

    Modified Files:
    xpdatetime.c
    Log Message:
    Bug-fix: occassionall, on Linux at least, xpTimeZone_local() would return
    the wrong timezone (off by an hour) because we were passing an uninitialized time_t value to localtime_r(). -- oops.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sun Dec 17 15:14:11 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/050772264e9e6c4ca3e36188
    Modified Files:
    src/xpdev/xpdatetime.c
    Log Message:
    Fix timezone portion of string output of time_to_isoDateTimeStr()

    The output of this function was not ISO-8601 complaint (blush) and was not parsable by isoDateTimeStr_parse() (returned -1).

    e.g. "20231217T011437-480" rather than "20231217T135222-0800" (in PST)

    Positive UTC offset (eastern) zones would be even worse (the + separator
    would be missing).
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net