-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
Add time condition in scenes #1151
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1151 +/- ##
==========================================
+ Coverage 96.27% 96.30% +0.02%
==========================================
Files 639 639
Lines 8112 8141 +29
==========================================
+ Hits 7810 7840 +30
+ Misses 302 301 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The list is AM / PM format, but not the field, any way to fix it?
And blue "remove" cross on field is not really sexy.
For more, I tried it, but condition time is in GMT.
I setup a condition between 18:40 and 18h45, run at 18:40:47.
2021-04-20T18:40:47+0200 <debug> scene.actions.js:152 (Object.condition.check-time) Condition isAfterHour not verified. Now = Tue, 20 Apr 2021 16:40:47 GMT < afterDate = Tue, 20 Apr 2021 16:40:47 GMT
2021-04-20T18:40:47+0200 <error> scene.execute.js:20 () AbortScene [Error]: CONDITION_IS_AFTER_HOUR_NOT_VERIFIED
Right I forgot to add the user locale :) Fixing it.
I know it's terrible, I'll try to do something but it's the lib ^^
Edit: Found the bug, fixing it now. I did a wrong usage of the dayjs library. |
Pull Request check-list
To ensure your Pull Request can be accepted as fast as possible, make sure to review and check all of these items:
npm test
on both front/server)npm run eslint
on both front/server)npm run prettier
on both front/server)npm run compare-translations
on front)front/src/config/demo.json
) so that the demo website is working without a backend? (if needed) See https://demo.gladysassistant.com.NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
Description of change
Add a new condition in scenes: