From 7ba691be3c9f5e877c1e78bf6e602eafdf27eccc Mon Sep 17 00:00:00 2001 From: "I.Maruyama" Date: Thu, 27 May 2021 23:54:15 +0900 Subject: [PATCH 1/2] ready for issue https://github.com/cocoa-mhlw/cocoa/issues/198 --- .../ViewModels/HomePage/NotContactPageViewModel.cs | 6 +++++- .../Covid19Radar/Views/HomePage/NotContactPage.xaml | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Covid19Radar/Covid19Radar/ViewModels/HomePage/NotContactPageViewModel.cs b/Covid19Radar/Covid19Radar/ViewModels/HomePage/NotContactPageViewModel.cs index 6d9bc50ff..cb3b15019 100644 --- a/Covid19Radar/Covid19Radar/ViewModels/HomePage/NotContactPageViewModel.cs +++ b/Covid19Radar/Covid19Radar/ViewModels/HomePage/NotContactPageViewModel.cs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ +using System; using Covid19Radar.Common; using Covid19Radar.Services; using Covid19Radar.Services.Logs; @@ -13,7 +14,10 @@ namespace Covid19Radar.ViewModels public class NotContactPageViewModel : ViewModelBase { private readonly ILoggerService loggerService; - + public string NowDate + { + get { return DateTime.Now.ToLocalTime().ToString("D"); } + } public NotContactPageViewModel(INavigationService navigationService, ILoggerService loggerService, IUserDataService userDataService) : base(navigationService) { Title = Resources.AppResources.TitileUserStatusSettings; diff --git a/Covid19Radar/Covid19Radar/Views/HomePage/NotContactPage.xaml b/Covid19Radar/Covid19Radar/Views/HomePage/NotContactPage.xaml index 48a8e5a48..edcdd7c6a 100644 --- a/Covid19Radar/Covid19Radar/Views/HomePage/NotContactPage.xaml +++ b/Covid19Radar/Covid19Radar/Views/HomePage/NotContactPage.xaml @@ -27,6 +27,8 @@