scratchfoundation / scratchfoundation/scratch-blocks
"days since 2000" should be calculated relative to timezone (it's not)
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 1.6k
- Avg merge
- 4h 51m
- Merged PRs (30d)
- 12
Description
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):
It should not iterate until the local time crosses midnight
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the implementation of the “Days since 2000” variable in the Scratch Blocks code and reproduce the reported AEST behavior around midnight. Done means the count advances at local midnight and the decimal reflects the fraction of the local day elapsed, rather than using UTC midnight.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100