mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
7b2a752d60
- Circumvent authentication by using direct URL Users' avatars - Change wrong completed-on icon - Parse dates in browser's format
14 lines
309 B
JavaScript
14 lines
309 B
JavaScript
/* global moment */
|
|
|
|
(function() {
|
|
$('.iso-formatted-date').each(function() {
|
|
const userLang = navigator.language || navigator.userLanguage || 'en-US';
|
|
let text = $(this).text().trim();
|
|
|
|
if (!text) {
|
|
return;
|
|
}
|
|
|
|
$(this).text(moment(text).local(userLang).format('LLL'));
|
|
});
|
|
}());
|