Skip to content

Commit

Permalink
3.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
monitor1394 committed Jun 16, 2024
1 parent 24270e5 commit 33b7e5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Runtime/Utilities/DateTimeUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ namespace XCharts.Runtime
{
public static class DateTimeUtil
{
#if UNITY_2018_3_OR_NEWER
private static readonly DateTime k_DateTime1970 = TimeZoneInfo.ConvertTimeFromUtc(new DateTime(1970, 1, 1), TimeZoneInfo.Local);
#else
private static readonly DateTime k_DateTime1970 = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));
#endif
public static readonly int ONE_SECOND = 1;
public static readonly int ONE_MINUTE = ONE_SECOND * 60;
public static readonly int ONE_HOUR = ONE_MINUTE * 60;
Expand Down

0 comments on commit 33b7e5c

Please sign in to comment.