Ignore:
Timestamp:
12/16/14 17:09:58 (10 years ago)
Author:
rlacroix
Message:

Fix: The conversion of a date to a number of seconds since the time origin was wrong.

Remove the work around in nc4_data_output.cpp which hid this bug.

Also backport this fix in XIOS 1.0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/date.cpp

    r532 r544  
    131131 
    132132         // Todo : Tester si la date courante est supérieure à la date initiale. 
    133          Time retvalue = - c.getNbSecond(c.getInitDate()) 
     133         Time retvalue = - c.getNbSecond(c.getTimeOrigin()) 
    134134                         + c.getNbSecond(*this); 
    135135 
Note: See TracChangeset for help on using the changeset viewer.