Skip to content

Commit

Permalink
Get rid of duplicated constant
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Jun 4, 2017
1 parent 8b5bf5c commit 669bde2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fCraft/Commands/InfoCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1983,8 +1983,7 @@ private static void APIPInfoHandler(Player player, CommandReader cmd) {
result.TryGetValue("registered", out registered1);
double registered2;
double.TryParse(registered1, out registered2);
var epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
DateTime registered3 = epoch.AddSeconds(registered2);
DateTime registered3 = DateTimeUtil.UnixEpoch.AddSeconds(registered2);
string username;
result.TryGetValue("username", out username);

Expand Down

0 comments on commit 669bde2

Please sign in to comment.