mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 23:47:33 +08:00
fix the problem that the transaction date not display sometimes in transaction list page
This commit is contained in:
@@ -105,6 +105,11 @@ export function getUnixTime(date) {
|
||||
return moment(date).unix();
|
||||
}
|
||||
|
||||
export function getShortDate(date) {
|
||||
date = moment(date);
|
||||
return date.year() + '-' + (date.month() + 1) + '-' + date.date();
|
||||
}
|
||||
|
||||
export function getYear(date) {
|
||||
return moment(date).year();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user