Fix streak dates not being aligned with current date #2

Closed
opened 2024-01-31 00:15:27 +01:00 by m.giller · 1 comment
Owner

In the following line of code, the ISO is used, which returns the UTC timestamp, but the local timestamp is required instead. Ultimate goal is to get a date-string in the format "YYYY-MM-DD". Rewrite this section to fix the bug.

Line 337 in ce5944c
const formattedDate = adjustedDate.toISOString().split('T')[0];

In the following line of code, the ISO is used, which returns the UTC timestamp, but the local timestamp is required instead. Ultimate goal is to get a date-string in the format "YYYY-MM-DD". Rewrite this section to fix the bug. https://code.giller.dev/m.giller/giller.dev/src/commit/ce5944c964cb520a7e8d22e28dca476a55ac2738/index.html#L337
m.giller added the
bug
label 2024-01-31 00:15:27 +01:00
m.giller self-assigned this 2024-01-31 00:15:27 +01:00
Author
Owner

Fixed with 2c349422e3

Fixed with 2c349422e3
Sign in to join this conversation.
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: m.giller/giller.dev#2
No description provided.