mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): add UTC clarification note to odd or even day challenge (#65884)
Co-authored-by: majestic-owl448 <26656284+majestic-owl448@users.noreply.github.com>
This commit is contained in:
+2
@@ -14,6 +14,8 @@ Given a timestamp (number of milliseconds since the Unix epoch), return:
|
||||
|
||||
For example, given `1769472000000`, a timestamp for January 27th, 2026, return `"odd"` because the day number (`27`) is an odd number.
|
||||
|
||||
Note: The timestamp is in milliseconds and you should use the date in the UTC timezone, not in your local time.
|
||||
|
||||
# --hints--
|
||||
|
||||
`oddOrEvenDay(1769472000000)` should return `"odd"`.
|
||||
|
||||
+2
@@ -14,6 +14,8 @@ Given a timestamp (number of milliseconds since the Unix epoch), return:
|
||||
|
||||
For example, given `1769472000000`, a timestamp for January 27th, 2026, return `"odd"` because the day number (`27`) is an odd number.
|
||||
|
||||
Note: The timestamp is in milliseconds and you should use the date in the UTC timezone, not in your local time.
|
||||
|
||||
# --hints--
|
||||
|
||||
`odd_or_even_day(1769472000000)` should return `"odd"`.
|
||||
|
||||
Reference in New Issue
Block a user