Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Conversation

forslund
Copy link
Collaborator

@forslund forslund commented Jan 29, 2020

Description

Lingua-franca returns the extracted datetime without the datetime from
the device info. This needs to be added by core through an "anchorDate" specifying the current time (including timezone info).

How to test

Set your timezone to Kansas City run the skill tester for the latest alarm skill version and assure the tests passes.

Contributor license agreement signed?

CLA [ Yes ]

@devs-mycroft devs-mycroft added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Jan 29, 2020
@krisgesling
Copy link
Contributor

If I set my Mycroft device and OS time to the KC timezone then the Alarm Skill tests pass on the current dev branch.

If I only set my device time but not my OS time to the KC timezone then the tests still fail on this bugfix branch.

So I'm assuming that some datetimes are being extracted from the device settings, and some from the system clock?

@forslund forslund force-pushed the bugfix/lingua-franca-tz branch from dcc5898 to 9d8f81d Compare January 29, 2020 14:22
This will provide timezone info as well as now reference to the
extracted sentences.
@forslund forslund force-pushed the bugfix/lingua-franca-tz branch from 9d8f81d to 9c8c8e0 Compare January 29, 2020 14:33
@forslund
Copy link
Collaborator Author

I've updated with a correct(-er) approach, sending a now reference to lingua-franca. Tested this with the alarm skill using various device times (Hawaii, Kansas City, CET, Darwin (before and after midnight over there)

Copy link
Contributor

@krisgesling krisgesling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@forslund
Copy link
Collaborator Author

Thank goshness

@forslund forslund merged commit f0caf42 into MycroftAI:dev Jan 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants