Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

調査終了日を定数を使うように修正 #1184

Merged
merged 2 commits into from
Oct 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ public class EndOfServiceNoticePageViewModel : ViewModelBase

private readonly ILoggerService _loggerService;

private readonly long FullStopDateTime = TimeZoneInfo.ConvertTime(new DateTime(2022, 12, 31, 0, 0, 0), AppConstants.TIMEZONE_JST).ToUnixEpoch();

public EndOfServiceNoticePageViewModel(
INavigationService navigationService,
ILoggerService loggerService
Expand All @@ -41,7 +39,7 @@ ILoggerService loggerService
{
_loggerService.StartMethod();

if (Utils.JstNow().ToUnixEpoch() <= FullStopDateTime && Utils.IsCurrentUICultureJaJp())
if (DateTime.UtcNow.ToUnixEpoch() <= AppConstants.SURVEY_END_DATE_UTC.ToUnixEpoch() && Utils.IsCurrentUICultureJaJp())
{
await NavigationService.NavigateAsync(nameof(SurveyRequestPage));
}
Expand Down