Menu

#411 AS400#getTimeZone returns offset instead of time zone

Connection
closed-fixed
Zhang Ze
None
5
2019-01-28
2018-11-07
dwickern
No
as400.getTimeZone()

Returns the time zone "GMT-08:00" when it should return "America/Los_Angeles" (the DST-adjusted equivalent).

The problem is a trailing space on the QTIMZON sysval, which doesn't get trimmed so the lookup fails.

SystemValue sv = new SystemValue(system, "QTIMZON");
String iTimeZone = (String)sv.getValue(); // "QN0800PST " (note trailing space)
String javaTimeZoneName = iTimeZoneToJavaTimeZone(iTimeZone); // null

Discussion

  • Zhang Ze

    Zhang Ze - 2018-11-08

    Thanks, I will look at this.

     
  • Zhang Ze

    Zhang Ze - 2018-11-08
    • assigned_to: Zhang Ze
     
  • Zhang Ze

    Zhang Ze - 2019-01-28

    The issue has been fixed in JTOpen 9.7

     
  • Zhang Ze

    Zhang Ze - 2019-01-28
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB