scratchfoundation / scratch-blocks

Scratch Blocks is a library for building creative computing interfaces.
https://scratch.mit.edu/developers
Apache License 2.0
2.57k stars 1.37k forks source link

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

Open cleary opened 2 months ago

cleary commented 2 months ago

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