-
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Hi,
I kept getting errors while trying to run "2fa.exe list".
The error was happening in DateTimeOffsetJsonConverter.cs file.
I divided by 1000 (assuming it was in milliseconds instead of seconds and got it to work for me)
public override DateTimeOffset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
long milliseconds = reader.GetInt64();
long seconds = milliseconds / 1000;
return DateTimeOffset.FromUnixTimeSeconds(seconds);
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested