-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
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
Date format does not use UTC #440
Labels
bug
Something isn't working
Comments
DerBasler
added a commit
to DerBasler/react-native-paper-dates
that referenced
this issue
Jan 15, 2025
Thanks for your PR @DerBasler ! |
My pleasure @RichardLindhout :) and thx for open sourcing it |
@RichardLindhout I assigned the pull request to you. Feel free to merge it. |
RichardLindhout
added a commit
that referenced
this issue
Jan 27, 2025
fix: use UTC timeZone for Intl.DateTimeFormat #440
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current behaviour
// end date used as input
const date = new Date('2025-01-23T23:59:59.999Z');
console.log(new Intl.DateTimeFormat('de').format(date));
// shows "24.1.2025" so +1 then what it should
Expected behaviour
It should use utc and show the selected date in this case "23.1.2025"
How to reproduce?
return (
<DatePickerModal
startDate={myStart}
endDate={myEnd}
visible={true}
locale='de'
mode="range"
onConfirm={()=>{}}
onDismiss={()=>{}}
/>);
Preview
What have you tried so far?
#441 (UTC is already used in \src\Time\TimePicker.tsx)
Your Environment
The text was updated successfully, but these errors were encountered: