Opened 11 years ago

Last modified 11 years ago

#210 new defect

Incorrect Time value returned when TZ = GMT0

Reported by: mdb23911 Owned by:
Priority: major Milestone: Enhanced
Component: general Version: 1.6.0 Build 27 GA5
Severity: medium Keywords: UTC time
Cc: martin.blanker@…

Description

I wrote a small Java program (attached) to understand what time value is returned on my machine.
What I expected (by setting TZ=GMT0) is that choosing UTC or GMT0 the time value woulds not be affected by DST (Daylight Saving Time). To my surprise it is affected.
The output of 20130309 (DST not in effect) is OK. The output of 20130404 (DST in effect in Portugal but TZ=GMT0) is NOK because one hour is subtracted.
I add a zip file with the output and program used.
Can you explain this behavior and how to solve this?

Attachments (1)

JTIMETST.ZIP (12.9 KB) - added by mdb23911 11 years ago.
JAVA test program and output

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by mdb23911

Attachment: JTIMETST.ZIP added

JAVA test program and output

comment:1 Changed 11 years ago by mdb23911

Summary: Time value returned while TZ = GMT0Incorrect Time value returned when TZ = GMT0
Note: See TracTickets for help on using tickets.