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
it('formats a date near daylight saving time end, offsetting it to a given time zone', () => {
const date = new Date('2020-10-31T21:37:02.233-05:00');
const timeZone = 'America/Chicago';
const offsetDate: Date = utcToZonedTime(date.toISOString(), timeZone);
const result = format(offsetDate, "yyyy-MM-dd h:mmaaaaa'm' xxx", { timeZone });
expect(result).toEqual('2020-10-31 9:37pm -05:00');
});
I receive a failure:
Error: Expected '2020-10-31 9:37pm -06:00' to equal '2020-10-31 9:37pm -05:00'.
This was working for some time, beginning with v1.0.11. The regression was introduced in v1.1.2. The current version (also broken) as I write this is v1.1.6.
The text was updated successfully, but these errors were encountered:
Is there any more information I can provide on this? Or am I using the API incorrectly or something? I put some effort into filing this issue, so I would be pleased to see a response.
If I write a test like:
I receive a failure:
This was working for some time, beginning with v1.0.11. The regression was introduced in v1.1.2. The current version (also broken) as I write this is v1.1.6.
The text was updated successfully, but these errors were encountered: