Реализовать лабораторную работу 5

This commit is contained in:
Никита
2026-11-10 10:57:36 +03:00
parent 276dbdad8a
commit 8c87c60621
124 changed files with 15887 additions and 27 deletions
+11
View File
@@ -0,0 +1,11 @@
namespace Messenger.Api.Data;
public static class UtcClock
{
// PostgreSQL timestamptz stores microseconds; keep the response identical to the saved value.
public static DateTime Now()
{
var ticks = DateTime.UtcNow.Ticks;
return new DateTime(ticks - ticks % 10, DateTimeKind.Utc);
}
}