namespace KArtSell.BuildingBlocks.Time;

public static class MarketTime
{
    public static DateTime SeoulDateTime(DateTimeOffset utcNow)
    {
        var zone = TimeZoneInfo.FindSystemTimeZoneById(
            OperatingSystem.IsWindows() ? "Korea Standard Time" : "Asia/Seoul");
        return TimeZoneInfo.ConvertTime(utcNow, zone).DateTime;
    }
}
