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

Timezone mismatch with reference_time #20

Closed
vinvinod opened this issue May 25, 2017 · 2 comments
Closed

Timezone mismatch with reference_time #20

vinvinod opened this issue May 25, 2017 · 2 comments
Labels

Comments

@vinvinod
Copy link

I am seeing that the timezone set with reference_time is not being returned in the result.
Here is the example

>>> import duckling
>>> import pprint
>>> d = duckling.DucklingWrapper()
>>> pprint.pprint(d.parse_time('today at 2 pm', reference_time='2017-05-28T00:00:00+05:30'))
[{u'dim': u'time',
  u'end': 13,
  u'start': 0,
  u'text': u'today at 2 pm',
  u'value': {u'others': [u'2017-05-28T14:00:00.000+05:00'],
             u'value': u'2017-05-28T14:00:00.000+05:00'}}]

Though I am using the timezone +05:30 the result has +05:00
I am using version 1.7.1

@FraBle
Copy link
Owner

FraBle commented May 25, 2017

Hi @vinvinod, this is a (known) issue with Duckling itself:
facebookarchive/duckling_old#209

@vinvinod
Copy link
Author

vinvinod commented Jun 2, 2017

Thanks @FraBle

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

No branches or pull requests

2 participants