mirror of
https://github.com/bitwarden/mobile
synced 2026-01-20 01:13:30 +00:00
Merge branch 'master' into feature/maui-migration
Fixed conflicts and added null check on ForwardEmailDomainName # Conflicts: # src/Core/Pages/Vault/CipherAddEditPage.xaml # src/Core/Pages/Vault/CipherDetailsPage.xaml # src/iOS.Core/Renderers/CollectionView/ExtendedGroupableItemsViewController.cs
This commit is contained in:
@@ -8,6 +8,8 @@ namespace Bit.App.Utilities
|
||||
{
|
||||
public class DateTimeConverter : IValueConverter
|
||||
{
|
||||
public string Format { get; set; } = "{0} {1}";
|
||||
|
||||
private readonly ILocalizeService _localizeService;
|
||||
|
||||
public DateTimeConverter()
|
||||
@@ -27,7 +29,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));
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Bit.Core.Abstractions;
|
||||
@@ -228,7 +229,7 @@ namespace Bit.Core.Utilities
|
||||
// and lower case the 2nd one (index 1)
|
||||
indexToLowerCase = 1;
|
||||
}
|
||||
sb.Append(char.ToLower(typeName[indexToLowerCase]));
|
||||
sb.Append(char.ToLower(typeName[indexToLowerCase], new CultureInfo("en-US")));
|
||||
sb.Append(typeName.Substring(++indexToLowerCase));
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user