1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-19 08:53:17 +00:00

PM-4404 Added CreationDate to Fido2Credential objects and updated the UI bindings accordingly (#2832)

This commit is contained in:
Federico Maccaroni
2023-10-19 17:46:26 -03:00
committed by GitHub
parent 72de17bd1d
commit 142c3145f0
8 changed files with 52 additions and 14 deletions

View File

@@ -7,6 +7,8 @@ namespace Bit.App.Utilities
{
public class DateTimeConverter : IValueConverter
{
public string Format { get; set; } = "{0} {1}";
private readonly ILocalizeService _localizeService;
public DateTimeConverter()
@@ -26,7 +28,7 @@ namespace Bit.App.Utilities
return string.Empty;
}
var d = ((DateTime)value).ToLocalTime();
return string.Format("{0} {1}",
return string.Format(Format,
_localizeService.GetLocaleShortDate(d),
_localizeService.GetLocaleShortTime(d));
}