Skip to content

Commit

Permalink
Merge pull request #2848 from rlzicar/patch-1
Browse files Browse the repository at this point in the history
Fix ToDateTime() always returning 01/01/1970
  • Loading branch information
ozdemir08 authored May 14, 2020
2 parents c592a4c + 14139c3 commit eeb962a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ internal class AndroidJavaConverter
internal static System.DateTime ToDateTime(long milliseconds)
{
System.DateTime result = new System.DateTime(1970, 1, 1, 0, 0, 0, 0);
result.AddMilliseconds(milliseconds);
return result;
return result.AddMilliseconds(milliseconds);
}

// Convert to LeaderboardVariant.java#TimeSpan
Expand Down Expand Up @@ -284,4 +283,4 @@ internal static TurnBasedMatch.MatchTurnStatus ToMatchTurnStatus(int matchTurnSt
}
}
}
#endif
#endif

0 comments on commit eeb962a

Please sign in to comment.