Skip to content

Commit

Permalink
Simplify Plugin.GetCurrentTime
Browse files Browse the repository at this point in the history
Co-authored-by: Eris <erisapps@outlook.be>
  • Loading branch information
opl- and ErisApps committed Jun 3, 2020
1 parent 5eefa8a commit 3253fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BeatSaberHTTPStatus/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ public void OnBeatmapEventDidTrigger(BeatmapEventData beatmapEventData) {
}

public static long GetCurrentTime() {
return (long) (DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).Ticks / TimeSpan.TicksPerMillisecond);
return DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
}

public class PluginTickerScript : PersistentSingleton<PluginTickerScript> {
Expand Down

0 comments on commit 3253fe5

Please sign in to comment.