Changeset 493 for trunk/src


Ignore:
Timestamp:
Nov 1, 2015, 4:18:59 PM (9 years ago)
Author:
katerina
Message:

Fix for ticket #391 (timezone offset calculation).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_unix.c

    r488 r493  
    23162316      /* Check for datum wrap-around.
    23172317       */
    2318       if      (aa.tm_year < bb.tm_year)
     2318      if      ((aa.tm_mday == 1) && (aa.tm_mday < bb.tm_mday))
     2319        sign = ( 1);
     2320      else if (aa.tm_year < bb.tm_year)
    23192321        sign = (-1);
    23202322      else if (aa.tm_mon  < bb.tm_mon)
Note: See TracChangeset for help on using the changeset viewer.