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:
committed by
GitHub
parent
72de17bd1d
commit
142c3145f0
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user