Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#582 query('timestamp') is 1 hr off on a day boundary

open
nobody
Classes (182)
5
2012-08-14
2009-03-10
ykorenfeld
No

The datetime and timestamp returned times that are 1 hr off when the file was created at the day boundary
on 3/8 -- a day of change to Daylight Savings Time.

The problem was reproduced below:

D:\CHMApplications\CHMCollector\Booking>dir xLastMin_GDS_Booking.LOG
Volume in drive D is DATA
Volume Serial Number is 4C94-FC94
Directory of D:\CHMApplications\CHMCollector\Booking

03/08/2009 11:59 PM 116 xLastMin_GDS_Booking.LOG
1 File(s) 116 bytes
0 Dir(s) 7,619,973,120 bytes free

D:\CHMApplications\CHMCollector\Booking>rexx test
3 - hist=.stream~new( 'xLastMin_GDS_Booking.LOG' )
>>> "xLastMin_GDS_Booking.LOG"
>>> "a Stream"
4 - say hist~query('timestamp')
>>> "timestamp"
>>> "2009-03-09 00:59:42"
2009-03-09 00:59:42
5 - say hist~query('datetime')
>>> "datetime"
>>> "03-09-09 00:59:42"

Discussion


Anonymous


Cancel   Add attachments