Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 14487ca

Browse files
committed
Change DateTime.ParseExact back to AdjustToUniversal
1 parent df43d8f commit 14487ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.Text/Common/DateTimeSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static DateTime ParseShortestXsdDateTime(string dateTimeStr)
7373
}
7474

7575
if (dateTimeStr.Length == XsdDateTimeFormatSeconds.Length)
76-
return DateTime.ParseExact(dateTimeStr, XsdDateTimeFormatSeconds, null, DateTimeStyles.AssumeUniversal).Prepare(parsedAsUtc:true);
76+
return DateTime.ParseExact(dateTimeStr, XsdDateTimeFormatSeconds, null, DateTimeStyles.AdjustToUniversal).Prepare(parsedAsUtc:true);
7777

7878
if (dateTimeStr.Length >= XsdDateTimeFormat3F.Length
7979
&& dateTimeStr.Length <= XsdDateTimeFormat.Length

0 commit comments

Comments
 (0)