Timezone units as hours are wrong

Bug #1103115 reported by Paul J. Lucas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Committed
High
Paul J. Lucas

Bug Description

In src/store/api/item_factory.h, createDateTime() and createTime() take a "timeZone_hours" parameter. A timezone can NOT be specified in so coarse a granularity as hours. There are places on the planet that are 30 and 45 minutes ahead (or behind) an hour.

Both the API and the way in which timezone offsets are stored internally must be changed to at LEAST minutes, but, IMHO, might as well make it seconds to match the way Unix does it. In this case, the timezone would have to be stored as at least an "int." Additionally, positive values should always indicate locations east of Greenwich.

If this is going to be fixed, it ought to be for 3.0 when we can break stuff.

Related branches

Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

The timezone units are also wrong in include/zorba/item_factory.h.

Changed in zorba:
assignee: Matthias Brantner (matthias-brantner) → Paul J. Lucas (paul-lucas)
tags: added: dates
Revision history for this message
Chris Hillery (ceejatec) wrote :

Quick note to point out that createDateTimeStamp() will also need changing when this is corrected.

tags: added: incompatible-change
Changed in zorba:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.