Improve time zone settings

- Add drag/drop reordering
- Display time zone name and ID
This commit is contained in:
2024-10-07 17:12:46 -04:00
parent 50fd78a3c3
commit a73a583ed7
6 changed files with 46 additions and 14 deletions

View File

@@ -35,6 +35,9 @@ public class TimeZoneEntry : INotifyDataErrorInfo
[JsonIgnore]
public bool HasErrors => _dataErrorDictionary.Any();
[JsonIgnore]
public TimeZoneInfo TimeZoneInfo => TimeZoneInfo.FindSystemTimeZoneById(TimeZoneId);
public IEnumerable GetErrors(string propertyName)
{
return _dataErrorDictionary.GetErrors(propertyName);