diff options
author | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2014-03-07 13:01:09 +0100 |
---|---|---|
committer | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2014-03-08 17:50:58 +0100 |
commit | 066dcba00659d2f81e4ba67edd14c44ed9ec3ea2 (patch) | |
tree | 5cdc7dff439f6b5ccb4acaf1ae677ad84b0c905a /sc/Library_scopencl.mk | |
parent | 3ce5fecea7d1dc3350db15c54bce584b83038e5f (diff) |
unotools: improve date parser to support timezones
ISO8601 defines timezones with formats like 'Z', '+01', '-08:30' or
'+0830' at the end of the datetime string, but our parser was failing
when the string contained any timezone information.
I have modified the parser so it doesn't fail in case of the string
contains a timezone. Moreover, I check that the timezone definition is
correct according to the standard [1] and I extract it to the string
tokTz.
Unfortunately UNO Time class doesn't contain any field to store the
timezone, only the boolean field IsUTC, which I fill accordingly.
TODO: add a timezone field to UNO and fill it from the parser.
[1] https://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators
Change-Id: I9d33b19efbc6d41a74b02ece2dfa12fa12fac5eb
Diffstat (limited to 'sc/Library_scopencl.mk')
0 files changed, 0 insertions, 0 deletions