From 9b6666e70829e3c341e709b1b0578603566d852b Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sun, 12 Jun 2022 14:24:10 +0200 Subject: refactor: Introduce AppDateTime and use it whenever we need to get current DateTime This changes enables us to change timezones in testing --- server/src/Endpoints/Internal/Account/GetArchiveRoute.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/Endpoints/Internal/Account') diff --git a/server/src/Endpoints/Internal/Account/GetArchiveRoute.cs b/server/src/Endpoints/Internal/Account/GetArchiveRoute.cs index 951dee0..f1b70f3 100644 --- a/server/src/Endpoints/Internal/Account/GetArchiveRoute.cs +++ b/server/src/Endpoints/Internal/Account/GetArchiveRoute.cs @@ -57,6 +57,6 @@ public class GetAccountArchiveRoute : RouteBaseAsync.WithoutRequest.WithActionRe return File(entriesSerialized, "application/json", - user.Username + "-time-tracker-archive-" + DateTime.UtcNow.ToString("yyyyMMddTHHmmss") + ".json"); + user.Username + "-time-tracker-archive-" + AppDateTime.UtcNow.ToString("yyyyMMddTHHmmss") + ".json"); } } -- cgit v1.3