Timestamps with Timezones in Database Tables? | slangley | 2012-11-08 10:38 | |||||||||||||||
Status: Closed | |||||||||||||||||
I read in a couple of old tickets, referenced below, where you decided not to use timezones with dates & timestamps. For us, we see an advantage with using timezones in that it makes data sharing simpler and more consistent. Would we run into any problems if we used timestamps with timezones in our external schemas? Any plans to support timestamps with timezones in the future directly in LabKey? Thanks. Scott https://www.labkey.org/issues/home/Developer/issues/details.view?issueId=8521&_docid=issue%3A8521 "Everyone decided that the server should be timezone-less. No timezone indicator returned from the server now." https://www.labkey.org/issues/home/Developer/issues/details.view?issueId=14706&_docid=issue%3A14706 "Using DatatypeConverter seems reasonable for now, and we can look at making parseDateTimeUS() handle this case if we want. Here's the one thing to be careful of. We parse datetime w/ timezone, but we save datetime w/o timezone (in the current timezone of the server). In this case we are parsing date w/ timezone. We should be careful not to inadvertently save this as a datetime. We don't want 2011-06-28+01:00 to become 2011-06-27 15:00:00, or something crazy like that. We should probably simply drop the timezone altogether and store 2011-06-28 (server tz). " |
|||||||||||||||||
| |||||||||||||||||