Nizam 3 weeks ago committed by GitHub
commit 8337313c66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -92,7 +92,10 @@ export default {
*/
datetimeFormat(value, format) {
if (value !== undefined && value !== "") {
return dayjs.utc(value).tz(this.timezone).format(format);
const date = new Date(value);
return date.toLocaleString(this.$i18n.locale, { ...format,
hour12: false,
timeZone: this.timezone }); // 24 hours format
}
return "";
},

Loading…
Cancel
Save