-
Hello again, Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
Hey Renee, The timezone property doesn't currently affect the AOS/LOS timestamps. I think our (wrong) assumption was that these would already be formatted to your particular timezone, either from your data source or in your client code since you're passing them in directly. We'll go ahead and add this as a new feature now though. I'll follow up here as soon as that's released. |
Beta Was this translation helpful? Give feedback.
-
Mark,
So I am trying to get AOS and LOS to be 2 different timestamps based on the
timezone of the RuxClock. Like behind 4 hours or ahead 6 hours to track
different time zones. I have not been able to get the AOS or LOS to
display anything useful. Even the canvas doesn't seem to be working based
on the documentation.
Example:
Clock is on MST (mountain time)
AOS = Dubi time
LOS = Hawaii time
Based on the documentation I thought passing in the military time letter
would adjust the aos/los but it shows nothing or 00:00:00.
Thanks!
Renee
…On Mon, Nov 29, 2021 at 12:44 PM Mark Anthony Cianfrani < ***@***.***> wrote:
Sorry, I was totally wrong here. Timezone does affect timestamps, but it
looks like there's a bug when you dynamically change the timezone.
https://codesandbox.io/s/infallible-cache-igvsx?file=/src/App.js
Hotfix incoming! Are you changing the timezone after render?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#131 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFUROBALOLXW4ZFI5JTRYXDUOPJZDANCNFSM5I3IZZKQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Gotcha! Are you able to share a snippet of your Clock implementation? Or just the values you're passing in? |
Beta Was this translation helpful? Give feedback.
-
Current answer to this question is use 3 different clocks and know that AOS/LOS are static and after some digging in the source code require a string of something like 1995-12-17T03:24:00. The date part needs to be there but is irreverent to what is displayed. Your hour and mins will be displayed as what you pass in not difference from timezone selected. |
Beta Was this translation helpful? Give feedback.
-
Just to close the loop here, we just released 6.0.4 which should fix that console error you were getting |
Beta Was this translation helpful? Give feedback.
Current answer to this question is use 3 different clocks and know that AOS/LOS are static and after some digging in the source code require a string of something like 1995-12-17T03:24:00. The date part needs to be there but is irreverent to what is displayed. Your hour and mins will be displayed as what you pass in not difference from timezone selected.