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 issues when displaying time #1064

Open
gcampax opened this issue Aug 3, 2021 · 2 comments
Open

Timezone issues when displaying time #1064

gcampax opened this issue Aug 3, 2021 · 2 comments
Assignees
Labels
bug P1 We're working on it right now web almond Web Almond, Almond API, Cloud ThingEngine, etc.

Comments

@gcampax
Copy link
Contributor

gcampax commented Aug 3, 2021

See log:

U: tell me a joke when i wake up
UT: $dialogue @org.thingpedia.dialogue.transaction.execute;
UT: attimer(time=[$time.morning]) => @com.icanhazdadjoke.get();
C: $dialogue @org.thingpedia.dialogue.transaction.execute;
C: ontimer(date=[$now + 10s]) => @org.thingpedia.media-player(id="com.spotify-gcampax"^^tt:device_id("Spotify Account of gcampax")).player_pause()
C: #[results=[
C:   { __device="com.spotify-gcampax"^^tt:device_id("Spotify Account of gcampax") }
C: ]];
C: attimer(time=[new Time(8, 30)]) => @com.icanhazdadjoke.get()
C: #[results=[]];
#! timestamp: 2021-08-03T19:30:05.528Z
A: What time does your morning begin?
A: Alright, I will get the joke every day at 1:30 AM.
AT: $dialogue @org.thingpedia.dialogue.transaction.sys_rule_enable_success;
#! vote: down

The time was parsed correctly to 8:30, but replied incorrectly to 1:30 AM.

I am not sure what time the program will actually run at.

@gcampax gcampax added bug web almond Web Almond, Almond API, Cloud ThingEngine, etc. labels Aug 3, 2021
@gcampax
Copy link
Contributor Author

gcampax commented Aug 3, 2021

Notably, an alert set on a relative time ("5 minutes from now") displayed the correct time:
image

@gcampax
Copy link
Contributor Author

gcampax commented Aug 3, 2021

Another log related to that:

U: set a timer at 12:35pm
UT: $dialogue @org.thingpedia.dialogue.transaction.execute;
UT: ontimer(date=[set_time($now, new Time(12, 35))]) => @org.thingpedia.builtin.thingengine.builtin.alert();
C: $dialogue @org.thingpedia.dialogue.transaction.execute;
C: ontimer(date=[set_time($now, new Time(12, 35))]) => @org.thingpedia.builtin.thingengine.builtin.alert()
C: #[results=[]];
#! timestamp: 2021-08-03T19:34:57.285Z
A: Alright, I will alert at set time 5:35 AM on date now.
AT: $dialogue @org.thingpedia.dialogue.transaction.sys_rule_enable_success;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug P1 We're working on it right now web almond Web Almond, Almond API, Cloud ThingEngine, etc.
Projects
None yet
Development

No branches or pull requests

2 participants