0
michael.sudnik created
- ABP Framework version: v4.0.1
- UI type:MVC
- DB provider: MongoDB
- Tiered (MVC) or Identity Server Seperated (Angular): yes
- Exception message and stack trace:
- Steps to reproduce the issue:
If I choose a display language that has a different date format (e.g. en-gb), then the time-ago is calculated incorrectly within the entity change history widget view component.
The {entityChange.ChangeTime}
needs to be replaced by {entityChange.ChangeTime:o}
to ensure that it is rendered in the ISO 8601 format, regardless of which culture is being used.
Mike
2 Answer(s)
-
0
hi @michael.sudnik
I will check it, Thanks.
-
0
hi
It will fixed in next version.
audit-logging/src/Volo.Abp.AuditLogging.Web/Pages/Shared/Components/EntityChangeWidget/Default.cshtml
var daysAgo = $"<time class=\"timeago\" data-toggle=\"popover\" data-placement=\"top\" data-trigger=\"hover\" datetime=\+++==={entityChange.ChangeTime:O}\" data-content=\"{entityChange.ChangeTime}\"></time>";