mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 07:13:12 +00:00
13 lines
398 B
C#
13 lines
398 B
C#
namespace SeaHaven.Services.Helpers;
|
|
|
|
public static class DashboardBusinessTime
|
|
{
|
|
public const string TimeZoneId = "America/New_York";
|
|
|
|
public static DateOnly Today()
|
|
{
|
|
var timezone = TimeZoneInfo.FindSystemTimeZoneById(TimeZoneId);
|
|
var businessNow = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, timezone);
|
|
return DateOnly.FromDateTime(businessNow);
|
|
}
|
|
}
|