We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For example Amsterdam time before July 1937 is GMT +0h 19m 32.13s.
GMT +0h 19m 32.13s
This means you get a partial minute which does not seem valid.
Example:
import { formatToTimeZone } from 'date-fns-timezone'; console.log( formatToTimeZone(new Date(1937, 0), 'YYYY-MM-DDZ', { timeZone: 'Europe/Amsterdam', }), );
Gives: 1937-01-01+00:19.533333333333335
1937-01-01+00:19.533333333333335
The text was updated successfully, but these errors were encountered:
My current workaround is rather pragmatic:
function roundAmsterdamTime(awsDate: string): string { return awsDate.replace(/:19\.5.*/, ':20'); }
Sorry, something went wrong.
No branches or pull requests
For example Amsterdam time before July 1937 is
GMT +0h 19m 32.13s
.This means you get a partial minute which does not seem valid.
Example:
Gives:
1937-01-01+00:19.533333333333335
The text was updated successfully, but these errors were encountered: