diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-09-21 08:17:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-21 08:17:55 +0200 |
| commit | b598f0e9fbc864b3886188659339837ee919d8b2 (patch) | |
| tree | 6a9953d1cf7f12fedec6ec83de58def2ae91a68d /Jellyfin.Api/Controllers/TimeSyncController.cs | |
| parent | 18506f7c218b218f58f99f09c10e0ff6b883b663 (diff) | |
| parent | 653df7d8e5b3474010b3797d7f15d51225932ca7 (diff) | |
Merge pull request #6584 from Bond-009/datetime
Specify DateTimeStyles when possible
Diffstat (limited to 'Jellyfin.Api/Controllers/TimeSyncController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/TimeSyncController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/TimeSyncController.cs b/Jellyfin.Api/Controllers/TimeSyncController.cs index 7df51c7af..e7c5a7125 100644 --- a/Jellyfin.Api/Controllers/TimeSyncController.cs +++ b/Jellyfin.Api/Controllers/TimeSyncController.cs @@ -21,10 +21,10 @@ namespace Jellyfin.Api.Controllers public ActionResult<UtcTimeResponse> GetUtcTime() { // Important to keep the following line at the beginning - var requestReceptionTime = DateTime.UtcNow.ToUniversalTime(); + var requestReceptionTime = DateTime.UtcNow; // Important to keep the following line at the end - var responseTransmissionTime = DateTime.UtcNow.ToUniversalTime(); + var responseTransmissionTime = DateTime.UtcNow; // Implementing NTP on such a high level results in this useless // information being sent. On the other hand it enables future additions. |
