> This test pass, but I wonder if it's not because the timezone is in UTC, I
> guess you should explicitely change the timzeone in the test (or add another
> test which changes the timezone before putting it in the database)
I used the exact string you gave me as an example. It would help if you could tell me how you get the date string to begin with - Date.toISOString() always uses UTC and there's no standard Javascript method to get an ISO string with a timezone.
> This test pass, but I wonder if it's not because the timezone is in UTC, I
> guess you should explicitely change the timzeone in the test (or add another
> test which changes the timezone before putting it in the database)
I used the exact string you gave me as an example. It would help if you could tell me how you get the date string to begin with - Date.toISOString() always uses UTC and there's no standard Javascript method to get an ISO string with a timezone.