fix: wrong month in "Last Change" #15

This commit is contained in:
bsourisse 2022-12-30 14:23:58 +01:00
parent 71e639575d
commit 829a053e8f

View file

@ -2,7 +2,7 @@
export default function timestampConverter(UNIX_timestamp) {
const a = new Date(UNIX_timestamp * 1000);
const year = a.getFullYear();
const month = a.getMonth();
const month = a.getMonth() + 1;
const date = a.getDate();
const hour = a.getHours();
const min = (a.getMinutes() < 10 ? '0' : '') + a.getMinutes();