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
First: Date.today() returns "Mon, 21 Nov 2011 22:00:00 GMT", on the client side it returns "Tue Nov 22 2011 00:00:00 GMT+0200 (EET)". The 1 day difference might come from the first issue and the funny hours need a deeper look.
Second:
Date.today().set({day: 1, month: 0, year:2011}) returns a day earlier: Fri, 31 Dec 2010 22:00:00 GMT, same 1 day difference as above
More examples of the same 1 day difference problem:
Date.today().set({day: 1, month: 10, year:2011}) is 31st of October 2011
Date.today().set({day: 1, month: 11, year:2011}) is 30th of November 2011
Date.today().set({day: 2, month: 11, year:2011}) is 2nd of December 2011
The text was updated successfully, but these errors were encountered:
First: Date.today() returns "Mon, 21 Nov 2011 22:00:00 GMT", on the client side it returns "Tue Nov 22 2011 00:00:00 GMT+0200 (EET)". The 1 day difference might come from the first issue and the funny hours need a deeper look.
Second:
Date.today().set({day: 1, month: 0, year:2011}) returns a day earlier: Fri, 31 Dec 2010 22:00:00 GMT, same 1 day difference as above
More examples of the same 1 day difference problem:
Date.today().set({day: 1, month: 10, year:2011}) is 31st of October 2011
Date.today().set({day: 1, month: 11, year:2011}) is 30th of November 2011
Date.today().set({day: 2, month: 11, year:2011}) is 2nd of December 2011
The text was updated successfully, but these errors were encountered: