diff --git a/BeefLibs/corlib/src/DateTime.bf b/BeefLibs/corlib/src/DateTime.bf index 6537f2c8..61b13652 100644 --- a/BeefLibs/corlib/src/DateTime.bf +++ b/BeefLibs/corlib/src/DateTime.bf @@ -555,15 +555,13 @@ namespace System return ToUniversalTime().ToFileTimeUtc(); } - public int64 ToFileTimeUtc() + public Result ToFileTimeUtc() { // Treats the input as universal if it is not specified int64 ticks = ((InternalKind & LocalMask) != 0UL) ? ToUniversalTime().InternalTicks : this.InternalTicks; ticks -= FileTimeOffset; if (ticks < 0) - { - Runtime.FatalError(); - } + return .Err; return ticks; }