fix: get todays date as string use utc #2

Merged
Ghost merged 0 commits from refs/pull/2/head into main 2025-05-25 09:00:02 +01:00
Ghost commented 2025-05-25 08:59:55 +01:00 (Migrated from codeberg.org)
  • Use UTC for the date interpolation example, which is more correct. (I run the tests around midnight, and the functions had different results as one was UTC while the other used my system locale.)
  • Drop the function that would break in 8,000 years.

Interestingly, the fix for the interpolation benchmark resulted in a very significant performance improvement.

* Use UTC for the date interpolation example, which is more correct. (I run the tests around midnight, and the functions had different results as one was UTC while the other used my system locale.) * Drop the function that would break in 8,000 years. Interestingly, the fix for the interpolation benchmark resulted in a very significant performance improvement.
Ghost commented 2025-05-25 09:00:02 +01:00 (Migrated from codeberg.org)

mentioned in commit 18a6efc9c1

mentioned in commit 18a6efc9c1fa476cfe654fcfd32924f2c576fa98
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
SethFalco/nodejs-microbenchmarks!2
No description provided.