mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-09-24 10:49:40 +00:00
metadataPanel.formatDate: Account for timezoneness
As MDN says, new Date( dateString ) is strongly discouraged, for exactly this reason. Oy. Bug: T243160 Change-Id: Ib71b16185f5bd1cd522535716b6e36d2699678cd
This commit is contained in:
parent
f7681dc537
commit
cf26ef2e1a
|
@ -816,7 +816,8 @@
|
|||
return date.toLocaleString( lang, {
|
||||
day: 'numeric',
|
||||
month: 'long',
|
||||
year: 'numeric'
|
||||
year: 'numeric',
|
||||
timeZone: 'UTC'
|
||||
} );
|
||||
}
|
||||
} catch ( ignore ) {}
|
||||
|
|
Loading…
Reference in a new issue