Fixed modified by localization, and added DateTimeFormat to localization

This commit is contained in:
HonesDK
2023-08-13 10:11:29 +02:00
parent 89e4dc7a08
commit 4a8bcc6f71
2 changed files with 7 additions and 2 deletions

View File

@ -40,6 +40,8 @@
protected override void OnParametersSet()
{
DateTimeFormat = Localizer["DateTimeFormat"];
_text = string.Empty;
if (!String.IsNullOrEmpty(CreatedBy) || CreatedOn.HasValue)
{
@ -64,12 +66,12 @@
if (!String.IsNullOrEmpty(ModifiedBy))
{
_text += $" {Localizer["by"]} <b>{ModifiedBy}</b>";
_text += $" {Localizer["By"]} <b>{ModifiedBy}</b>";
}
if (ModifiedOn != null)
{
_text += $" {Localizer["on"]} <b>{ModifiedOn.Value.ToString(DateTimeFormat)}</b>";
_text += $" {Localizer["On"]} <b>{ModifiedOn.Value.ToString(DateTimeFormat)}</b>";
}
_text += "</p>";