Skip to content

Commit

Permalink
BUGFIX: Fixed error involving TZ and incorrect time when put into dis…
Browse files Browse the repository at this point in the history
…cord
  • Loading branch information
TimeTravelPenguin committed Feb 9, 2022
1 parent a04c342 commit ccefb5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DiscordTimeStamper/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// File Name: MainWindowViewModel.cs
//
// Current Data:
// 2021-07-13 2:11 AM
// 2022-02-09 9:55 PM
//
// Creation Date:
// 2021-07-12 10:02 PM
Expand Down Expand Up @@ -89,7 +89,7 @@ private void UpdateFormats(object? sender, PropertyChangedEventArgs e)
try
{
formattedTime = new DateTimeOffset(DateTime.Year, DateTime.Month, DateTime.Day, DateTime.Hour,
DateTime.Minute, DateTime.Second, SelectedTimeZone.BaseUtcOffset);
DateTime.Minute, DateTime.Second, SelectedTimeZone.GetUtcOffset(DateTime));
}
catch (Exception err)
{
Expand Down

0 comments on commit ccefb5b

Please sign in to comment.