mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-06-04 23:12:15 +02:00
fix: wrong month in "Last Change" #15
This commit is contained in:
parent
71e639575d
commit
829a053e8f
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue