diff --git a/Covid19Radar/Covid19Radar/ViewModels/HomePage/ContactedNotifyPageViewModel.cs b/Covid19Radar/Covid19Radar/ViewModels/HomePage/ContactedNotifyPageViewModel.cs index f80b11ca8..83456e94f 100644 --- a/Covid19Radar/Covid19Radar/ViewModels/HomePage/ContactedNotifyPageViewModel.cs +++ b/Covid19Radar/Covid19Radar/ViewModels/HomePage/ContactedNotifyPageViewModel.cs @@ -8,6 +8,7 @@ using Xamarin.Forms; using Xamarin.Essentials; using Covid19Radar.Resources; +using System; namespace Covid19Radar.ViewModels { @@ -20,6 +21,10 @@ public string ExposureCount get { return _exposureCount; } set { SetProperty(ref _exposureCount, value); } } + public string NowDate + { + get { return DateTime.Now.ToLocalTime().ToString("D"); } + } public ContactedNotifyPageViewModel(INavigationService navigationService, ILoggerService loggerService, IExposureNotificationService exposureNotificationService) : base(navigationService) { 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/ContactedNotifyPage.xaml b/Covid19Radar/Covid19Radar/Views/HomePage/ContactedNotifyPage.xaml index f38ed2c0e..5c8939996 100644 --- a/Covid19Radar/Covid19Radar/Views/HomePage/ContactedNotifyPage.xaml +++ b/Covid19Radar/Covid19Radar/Views/HomePage/ContactedNotifyPage.xaml @@ -32,8 +32,15 @@ Source="InfoMark.png" />