Bug 30135 - DateTime.UTCNow does not report correctly on Android Player
Summary: DateTime.UTCNow does not report correctly on Android Player
Alias: None
Product: Xamarin Android Player
Classification: Xamarin
Component: Player ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
: 31590 ()
Depends on:
Reported: 2015-05-15 12:16 UTC by Cody Beyer (MSFT)
Modified: 2015-09-30 11:38 UTC (History)
6 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:

Description Cody Beyer (MSFT) 2015-05-15 12:16:46 UTC
### Description

When reading the results of System.DateTime.UTCNow the value is equal to my local timezone (PDT) instead of GMT. This does not occur on a device

### Test App


### Screenshot


### Steps to Reproduce

1. Download Test App
2. Deploy to Xamarin Android Player

### Expected Results

App should correctly display both UTC and Local times

### Actual Results

Local time is displayed for both calls

### Versions

Xamarin Android Player: 0.3.7(1)

=== Xamarin Studio ===

Version 5.9.2 (build 0)
Installation UUID: 061f61cf-c366-4da7-b3c9-31033d0fc883
	Mono 4.0.1 ((detached/6d5afc1)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400010034

=== Apple Developer Tools ===

Xcode 6.3.1 (7703)
Build 6D1002

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: b39367d
Branch: master
Build date: 2015-05-14 08:50:11-0400

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK: /Users/beyerc/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: (Business Edition)

=== Build Information ===

Release ID: 509020000
Git revision: f97f3598952edca4678fc9fdafffecb68ed24399
Build date: 2015-05-08 11:55:56-04
Xamarin addins: ab18ddff45f507ed74f36c2b65df9aee22e28a56

=== Operating System ===

Mac OS X 10.10.3
Darwin Codys-MBP.router 14.3.0 Darwin Kernel Version 14.3.0
    Mon Mar 23 11:59:05 PDT 2015
    root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
Comment 1 Jon Goldberger [MSFT] 2015-07-01 16:13:42 UTC

Comment 2 Jon Goldberger [MSFT] 2015-07-02 14:37:17 UTC
Never mind, the above does not work. I must have made an error when testing this workaround initially.
Comment 4 Will Schaller 2015-07-31 03:43:48 UTC
*** Bug 31590 has been marked as a duplicate of this bug. ***
Comment 5 ppatarinski@paylocity.com 2015-08-06 15:04:54 UTC
Any update on this bug?
Comment 6 Mark Simpson 2015-09-28 09:28:56 UTC
This is fixed by work done on 32914.

Tested in version 0.6.1. Tested using provided sample app / project and the displayed times are different. Once is local, the other is UTC.

Please re-test in this version or newer.
Comment 7 Will Schaller 2015-09-30 11:38:29 UTC
Fixed in 0.6.1