mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 05:43:46 +01:00
Use UTC for getIssuedDate(publi)
This commit is contained in:
parent
6d38d7be1f
commit
974acae266
@ -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]))
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user