Bug 42621 - iOS: DateTimeOffset doesn't get correct TimeZone offset when you change the Date TimeZone in System settings
Summary: iOS: DateTimeOffset doesn't get correct TimeZone offset when you change the D...
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS (show other bugs)
Version: 2.3.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-07-18 06:02 UTC by Cliff Cawley
Modified: 2016-11-29 11:56 UTC (History)
5 users (show)

See Also:
Tags: ac
Is this bug a regression?: ---
Last known good build:

Sample to reproduce bug (29.54 KB, application/zip)
2016-07-18 06:02 UTC, Cliff Cawley

Description Cliff Cawley 2016-07-18 06:02:17 UTC
Created attachment 16702 [details]
Sample to reproduce bug

DateTimeOffset on iOS doesn't get the correct offset if you change the Time Zone while the app is running. It correctly updates only from a fresh start.

Attached is a sample that demonstrates this.

To reproduce on iOS:

1) Launch the app on an ios device (not simulator) and take note of the time zone offset.
2) Background the app and change the Time Zone under Date & Time in iOS Settings
3) Foreground the app and notice that the Offset information doesn't update to reflect. (The sample will auto reconstruct the view on resume, or you can tap the refresh button)

The offset information should update as it does on Android.

Additional notes:
Android works as expected
Comment 2 adrianknight89 2016-10-06 07:34:31 UTC
See https://github.com/xamarin/Xamarin.Forms/pull/423
Comment 3 Rui Marinho 2016-10-11 21:31:42 UTC
Should be fixed in 2.3.4-pre1
Comment 4 Parmendra Kumar 2016-11-29 11:56:53 UTC
I have checked this issue with Xamarin.Forms 2.3.4-pre1 and its working fine.

Hence closing this issue.

Note You need to log in before you can comment on or make changes to this bug.