Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Context broker does not respect DateTime timezone #2632

Closed
jmcanterafonseca opened this issue Nov 1, 2016 · 3 comments
Closed

[Bug] Context broker does not respect DateTime timezone #2632

jmcanterafonseca opened this issue Nov 1, 2016 · 3 comments
Milestone

Comments

@jmcanterafonseca
Copy link
Contributor

how to reproduce:

create an entity with an attribute of type DateTime coded as an ISO8601 string, for instance

2016-11-01T19:00:00+01:00

Perform a query which lists the referred entity. The attribute value is now expressed incorrectly in UTC:

2016-11-01T19:00:00.00Z

@fgalan fgalan added this to the 1.6.0 milestone Nov 2, 2016
@fgalan
Copy link
Member

fgalan commented Nov 11, 2016

As far as I understand by https://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators, the following timezone designators should be supported

<time>Z
<time>±hh:mm
<time>±hhmm
<time>±hh

But not strings like "UTC", "CET", "PDT", etc.

Is my interpretation correct?

@fgalan
Copy link
Member

fgalan commented Nov 11, 2016

@fgalan
Copy link
Member

fgalan commented Nov 11, 2016

Fixed by PR #2660

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants