diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-04-10 21:18:20 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-04-10 21:18:20 -0300 |
| commit | 46548bbc416ed4f5a53dade6a172b9eec2644ba0 (patch) | |
| tree | ff675579b84630db9dd5216471c3d99c7067a1ba | |
| parent | 29a4fb6a57093a8c441fca7eb51063b4e26a1c14 (diff) | |
[HLE/Service] Fix ToCalendarTimeWithMyRule (for real this time)
| -rw-r--r-- | Ryujinx.Core/OsHle/Services/Time/ITimeZoneService.cs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Ryujinx.Core/OsHle/Services/Time/ITimeZoneService.cs b/Ryujinx.Core/OsHle/Services/Time/ITimeZoneService.cs index cf7abbfa..767d3cc7 100644 --- a/Ryujinx.Core/OsHle/Services/Time/ITimeZoneService.cs +++ b/Ryujinx.Core/OsHle/Services/Time/ITimeZoneService.cs @@ -26,12 +26,12 @@ namespace Ryujinx.Core.OsHle.Services.Time DateTime CurrentTime = Epoch.AddSeconds(PosixTime).ToLocalTime(); - Context.ResponseData.Write((ushort)Epoch.Year); - Context.ResponseData.Write((byte)Epoch.Month); - Context.ResponseData.Write((byte)Epoch.Day); - Context.ResponseData.Write((byte)Epoch.Hour); - Context.ResponseData.Write((byte)Epoch.Minute); - Context.ResponseData.Write((byte)Epoch.Second); + Context.ResponseData.Write((ushort)CurrentTime.Year); + Context.ResponseData.Write((byte)CurrentTime.Month); + Context.ResponseData.Write((byte)CurrentTime.Day); + Context.ResponseData.Write((byte)CurrentTime.Hour); + Context.ResponseData.Write((byte)CurrentTime.Minute); + Context.ResponseData.Write((byte)CurrentTime.Second); Context.ResponseData.Write((byte)0); /* Thanks to TuxSH @@ -45,16 +45,16 @@ namespace Ryujinx.Core.OsHle.Services.Time }; }; */ - Context.ResponseData.Write((int)Epoch.DayOfWeek); + Context.ResponseData.Write((int)CurrentTime.DayOfWeek); - Context.ResponseData.Write(Epoch.DayOfYear); + Context.ResponseData.Write(CurrentTime.DayOfYear); //TODO: Find out the names used. Context.ResponseData.Write(new byte[8]); - Context.ResponseData.Write((byte)(Epoch.IsDaylightSavingTime() ? 1 : 0)); + Context.ResponseData.Write((byte)(CurrentTime.IsDaylightSavingTime() ? 1 : 0)); - Context.ResponseData.Write((int)TimeZoneInfo.Local.GetUtcOffset(Epoch).TotalSeconds); + Context.ResponseData.Write((int)TimeZoneInfo.Local.GetUtcOffset(CurrentTime).TotalSeconds); return 0; } |
