react-native-datetimepicker / datetimepicker

React Native date & time picker component for iOS, Android and Windows
MIT License
2.54k stars 413 forks source link

Dates Stuck in 2020 - Not accurate #924

Closed ajkraus04 closed 3 months ago

ajkraus04 commented 3 months ago

Bug report

Summary

I am getting an issue where the date output is incorrect and set in 2020. Is this a bug or am I misusing the library?

This is the output of the selectedDate: 2020-08-21T23:17:30.000Z

Reproducible sample code

Steps to reproduce

Describe what you expected to happen:

Environment info

npx react-native info output:

# paste it here

Time zone name (If the problem you have is related to unexpected time / date. See list in https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).

datetimepicker version: x.x.x

iOS / Android version: x.x

github-actions[bot] commented 3 months ago

:wave: @ajkraus04, sorry you're having an issue. This issue is being closed because it does not provide all information required by the issue template. As the issue template explains, we require that you provide a runnable example that reproduces your issue and your environment information. This means you need to provide a code snippet that we can copy-paste into an empty project and see the error ourselves, or provide a git repository with the issue. The reason is that maintainers do not have time to try reproduce bugs themselves. Please try to minimize the superfluous code and focus only on reproducing the bug. Please create a new issue with this and we'll be happy to review it!