Ignore:
Timestamp:
12/16/14 17:09:58 (7 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/branchs/xios-1.0/src/date.cpp

    r501 r544  
    119119      { 
    120120         // Todo : Tester si la date courante est supérieure à la date initiale. 
    121          Time retvalue = - relCalendar.getNbSecond(relCalendar.getInitDate()) 
     121         Time retvalue = - relCalendar.getNbSecond(relCalendar.getTimeOrigin()) 
    122122                         + relCalendar.getNbSecond(*this); 
    123123 
Note: See TracChangeset for help on using the changeset viewer.