diff --git a/BeatSaberHTTPStatus/Plugin.cs b/BeatSaberHTTPStatus/Plugin.cs index bdb9e46..221b142 100644 --- a/BeatSaberHTTPStatus/Plugin.cs +++ b/BeatSaberHTTPStatus/Plugin.cs @@ -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 {