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

"days since 2000" should be calculated relative to timezone (it's not) #9615

Closed
cleary opened this issue Jun 27, 2024 · 1 comment
Closed

Comments

@cleary
Copy link

cleary commented Jun 27, 2024

Expected Behavior

"Days since 2000" should iterate by 1 at midnight relative to my timezone (AEST UTC+10)

Actual Behavior

"Days since 2000" iterates at 10am in my timezone (10 hours later than it should have)

Steps to Reproduce

Show the variable "Days since 2000", and the decimal value should be relative to the amount of day passed in your non-UTC+0 timezone - eg at midday in your timezone, the decimal value should be 0.5. It's not

System Details

na

Screenshots
Little program to update the days since 2000 when space is pressed - in this example, the timezone is AEST (UTC+10), the local time is 09:30am and you can see the "days since 2000" is almost about to iterate to it's next whole number (at 10am my time):

Peek 2024-06-28 09-28

It should not iterate until the local time crosses midnight

@cleary cleary changed the title "days since 2000" is not calculated relative to timezone "days since 2000" is should be calculated relative to timezone (it's not) Jun 27, 2024
@cleary cleary changed the title "days since 2000" is should be calculated relative to timezone (it's not) "days since 2000" should be calculated relative to timezone (it's not) Jun 27, 2024
@cleary
Copy link
Author

cleary commented Jun 28, 2024

moved to a more appropriate repo: scratchfoundation/scratch-blocks#3290

@cleary cleary closed this as completed Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant