You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By looking in the library, I see that the lunar function calculates the lunar date based on the provided date.
The function first checks if the input is a string, if it is, it converts it to a Date object. Afterwards, it subtracts 7 hours from the provided date:
if (typeof date === 'string') {
date = new Date(date);
}
date = new Date(date - 7 * 60 * 60 * 1000);
This means if we input a date string that is after 19:00 (or 7 PM), the date will be shifted back by 7 hours, which can potentially change the date to the previous day. This is likely causing the issue of our dates after 19:00 to show as the next day in the result.
I found one more strange
I run CLI at 5PM Local Time :
it's look fine but after 7PM it's showing next day:
The text was updated successfully, but these errors were encountered: