Closed helmerm closed 8 years ago
This is a
Which plugin does this impact:
Version Number of Plugin: 3.0.4 Device Tested On: iPhone 6 iOS 9.3 Simulator Tested On:
Position.Timestamp should return correct UTC timestamp
Position.Timestamp returns wrong UTC time
Bug Location in Code
The ToDateTime() extension method produces a DateTime with an Kind.Unspecified. Calling the ToUniversalTime() method will assume Kind Local and convert the timestamp to UTC. MSDN Link
Use the static SpecifyKind method instead MSDN Link
@lothrop already created a pull request for this issue, see #266.
Did not see that... Thanks.
This is a
Which plugin does this impact:
Version Number of Plugin: 3.0.4 Device Tested On: iPhone 6 iOS 9.3 Simulator Tested On:
Expected Behavior
Position.Timestamp should return correct UTC timestamp
Actual Behavior
Position.Timestamp returns wrong UTC time
Steps to reproduce the Behavior
Bug Location in Code
The ToDateTime() extension method produces a DateTime with an Kind.Unspecified. Calling the ToUniversalTime() method will assume Kind Local and convert the timestamp to UTC. MSDN Link
Use the static SpecifyKind method instead MSDN Link