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:
James D. Forrester 2020-02-24 15:15:14 -08:00
parent f7681dc537
commit cf26ef2e1a

View file

@ -816,7 +816,8 @@
return date.toLocaleString( lang, {
day: 'numeric',
month: 'long',
year: 'numeric'
year: 'numeric',
timeZone: 'UTC'
} );
}
} catch ( ignore ) {}