question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for timezoneOffsetInMinutes in Android

See original GitHub issue

Feature request

Why it is needed

Our app uses in-app timezone rather than the device’s timezone. So we need to set the timezone offset in datetime pickers in android like we do for iOS datetime pickers.

Code sample

<DateTimePicker
     ...
     timezoneOffsetInMinutes={30}
    ...
/>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
billnbellcommented, Feb 8, 2021

This is fixed. Can we lok at merging, or give me some feedback?

https://github.com/billnbell/datetimepicker

2reactions
abhittalcommented, May 6, 2021

@bobdepreziz It’s not working at my end as well. I tried specifying many values in timeZoneOffsetInMinutes but always get the UTC time in the time picker. Can you suggest me how can I select time relative to my device’s timezone?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support for timezoneOffsetInMinutes in Android #284 - GitHub
So we need to set the timezone offset in datetime pickers in android like we do for iOS datetime pickers. Code sample. <DateTimePicker...
Read more >
react-native-community/datetimepicker - npm
timeZoneOffsetInMinutes ( optional , iOS and Android only ). Allows changing of the timeZone of the date picker. By default, it uses the ......
Read more >
React native date picker component works weird in android
Try removing the prop timeZoneOffsetInMinutes={0} . Which Allows changing of the timeZone of the date picker.
Read more >
npm:react-native-date-picker-bugfix - Skypack.dev
Supports Android and iOS. ... Supporting iOS and Android ... timeZoneOffsetInMinutes, Timezone offset in minutes (default: device's timezone).
Read more >
React Native date & time picker component for iOS and Android
Please note that we support iOS >= 10 but you need Xcode 11 to build. ... ( <DateTimePicker testID="dateTimePicker" timeZoneOffsetInMinutes={0} value={date} ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found