Merge pull request #1754 from leigh-pointer/1753
Update for #1753 Date format for the Audit
This commit is contained in:
		| @ -35,6 +35,9 @@ | ||||
|     [Parameter] | ||||
|     public string Style { get; set; } | ||||
|  | ||||
|     [Parameter] | ||||
|     public string DateTimeFormat { get; set; } = "MMM dd yyyy HH:mm:ss"; | ||||
|  | ||||
|     protected override void OnParametersSet() | ||||
|     { | ||||
|         _text = string.Empty; | ||||
| @ -49,7 +52,7 @@ | ||||
|  | ||||
|             if (CreatedOn != null) | ||||
|             { | ||||
|                 _text += $" {Localizer["On"]} <b>{CreatedOn.Value.ToString("MMM dd yyyy HH:mm:ss")}</b>"; | ||||
|                 _text += $" {Localizer["On"]} <b>{CreatedOn.Value.ToString(DateTimeFormat)}</b>"; | ||||
|             } | ||||
|  | ||||
|             _text += "</p>"; | ||||
| @ -66,7 +69,7 @@ | ||||
|  | ||||
|             if (ModifiedOn != null) | ||||
|             { | ||||
|                 _text += $" {Localizer["on"]} <b>{ModifiedOn.Value.ToString("MMM dd yyyy HH:mm:ss")}</b>"; | ||||
|                 _text += $" {Localizer["on"]} <b>{ModifiedOn.Value.ToString(DateTimeFormat)}</b>"; | ||||
|             } | ||||
|  | ||||
|             _text += "</p>"; | ||||
| @ -83,7 +86,7 @@ | ||||
|  | ||||
|             if (DeletedOn != null) | ||||
|             { | ||||
|                 _text += $" {Localizer["On"]} <b>{DeletedOn.Value.ToString("MMM dd yyyy HH:mm:ss")}</b>"; | ||||
|                 _text += $" {Localizer["On"]} <b>{DeletedOn.Value.ToString(DateTimeFormat)}</b>"; | ||||
|             } | ||||
|  | ||||
|             _text += "</p>"; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker