Skip to content

Commit

Permalink
fix(parser): Make DateTimeOffsetParser use UTC by default
Browse files Browse the repository at this point in the history
  • Loading branch information
VelvetToroyashi authored Oct 7, 2024
1 parent 8bf0828 commit 3660ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Remora.Commands/Parsers/Builtin/DateTimeOffsetParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public override ValueTask<Result<DateTimeOffset>> TryParseAsync(string? value, C
{
return new ValueTask<Result<DateTimeOffset>>
(
!DateTimeOffset.TryParse(value, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None, out var result)
!DateTimeOffset.TryParse(value, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AssumeUniversal, out var result)
? new ParsingError<DateTimeOffset>(value)
: result
);
Expand Down

0 comments on commit 3660ea7

Please sign in to comment.