10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 13:53:48 +01:00

Use UTC for getIssuedDate(publi)

This commit is contained in:
Mickaël Véril 2020-05-04 14:11:36 +02:00
parent 6d38d7be1f
commit 974acae266

View File

@ -1,6 +1,6 @@
class pubUtils{ class pubUtils{
static getIssuedDate(publi) { static getIssuedDate(publi) {
const parts=publi.issued["date-parts"][0] const parts=publi.issued["date-parts"][0]
return new Date(parts[0], parts[1] - 1, parts[2]) return new Date(Date.UTC(parts[0], parts[1] - 1, parts[2]))
} }
} }