Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 8420 [details]
All dates are being displayed as one hour behind the actual time. This has been tested on a handful of Android phones not just the emulator. It may be related to our timezone (Central Daylight Time) and daylight savings time. I can confirm that this bug did not previously exist for us, it was introduced by a Xamarin software update. Phones that we've observed this error on include Samsung Galaxy S3, S4, & S5.
I set up a very simple test case to reproduce the issue. See comments in the code below along with the accompanying screenshots:
[Activity(Label = "App1", MainLauncher = true, Icon = "@drawable/icon")]
public class MainActivity : Activity
protected override void OnCreate(Bundle bundle)
TextView myText = FindViewById<TextView>(Resource.Id.MyText);
myText.Text = DateTime.Now.ToString("MM/dd/yyyy h:mm tt"); //displays date that is an hour behind
myText.Text += " " + System.TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now); //utc offset is -6 but should probably be -5
I did some further testing. I can confirm that the root issue seems to be that the daylight savings offset is not accounted for.
Arizona doesn't observe daylight savings, if I switch my phone's time zone to Arizona (GMT-7:00) then the dates display correctly, but for any other time zone in the United States the dates display incorrectly.
I have checked this issue and able to reproduce it with the help of bug descritpion.
I tried following steps to reproduce it.
I observed that except Arizona (GMT-7:00) date and time with time zone displaying incorrectly,Following are the observation with diffrent Time zone.
GMT-07:00 Mountain Standard Time 15/10/2014 10/15/2014 12:43 am-07:00:00 (Correct)
GMT-11:00 Samoa Standard Time 15/10/2014 10/14/2014 08:52pm-11:00:00 (Incorrect)
GMT+10:00 Chamorro Satndard Time 15/10/2014 10/15/2014 06:01 pm 10:00:00 (Correct)
GMT-05:00 Central Daylight Time 15/10/2014 10/15/2014 02:04 am -06:00:00 (Incorrect)
GMT-08:00 Alaska Daylight Time 15/10/2014 10/14/2014 11:07 am -09:00:00 (Incorrect)
VS 2013 professional Update 3
Device : Samsung Galaxy S5
Created attachment 8422 [details]
*** This bug has been marked as a duplicate of bug 23405 ***