Skip to content
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

[Android] Wrong datetime using 24h format... timezone ? #657

Open
cecicifu opened this issue Sep 3, 2022 · 3 comments
Open

[Android] Wrong datetime using 24h format... timezone ? #657

cecicifu opened this issue Sep 3, 2022 · 3 comments

Comments

@cecicifu
Copy link

cecicifu commented Sep 3, 2022

Environment

System:
OS: Windows 10 10.0.19044
CPU: (4) x64 Intel(R) Core(TM) i5-7600K CPU @ 3.80GHz
Memory: 6.07 GB / 15.96 GB
Binaries:
Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.0.2 - D:\laragon\bin\yarn\bin\yarn.CMD
npm: 8.15.1 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
AllowAllTrustedApps: Enabled
IDEs:
Android Studio: AI-212.5712.43.2112.8609683
Visual Studio: Not Found
Languages:
Java: javac 16 - C:\Program Files\AdoptOpenJDK\jdk-16.0.0.36-hotspot\bin\javac.EXE
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.3 => 0.69.3
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found

Platforms

Android

Versions

  • Android: 12 (emulator), 11 (my real phone)
  • iOS: not tested yet :(
  • react-native-modal-datetime-picker: 13.1.2
  • react-native-community/datetimepicker: 6.3.2
  • react-native: 0.69.3
  • react: 18.0.0

Description

Something is wrong with the timezones when I use the datetime mode with 24h format.

If I select the day 23 at 00:50 hours:

Screenshot_2

The onConfirm() event returns the following date:

Screenshot_1

Thanks you! :)

@cecicifu cecicifu added the bug label Sep 3, 2022
@cecicifu
Copy link
Author

cecicifu commented Sep 5, 2022

👋

Both libraries works fine if use the mode time. This only happens when use the mode datetime. Thanks!

image

@mmazzarolo
Copy link
Owner

:/ not really sure. I would suggest playing with the datetime creation flow locally to determine where the issue is happening. Unfortunately I can't help these days since I'm not using RN anymore.

@mmazzarolo mmazzarolo changed the title Wrong datetime using 24h format... timezone ? [Android] Wrong datetime using 24h format... timezone ? Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants