mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 16:54:25 +08:00
code refactor
This commit is contained in:
+1
-1
@@ -886,7 +886,7 @@ export function getCombinedDateAndTimeValues(date: Date, timeValues: string[], i
|
|||||||
|
|
||||||
export function getValidMonthDayOrCurrentDayShortDate(unixTime: number, currentShortDate: string): string {
|
export function getValidMonthDayOrCurrentDayShortDate(unixTime: number, currentShortDate: string): string {
|
||||||
const currentTime = moment();
|
const currentTime = moment();
|
||||||
let monthLastTime = moment.unix(getMonthLastUnixTimeBySpecifiedUnixTime(unixTime));
|
const monthLastTime = moment.unix(getMonthLastUnixTimeBySpecifiedUnixTime(unixTime));
|
||||||
|
|
||||||
if (currentShortDate) {
|
if (currentShortDate) {
|
||||||
const yearMonthDay = currentShortDate.split('-');
|
const yearMonthDay = currentShortDate.split('-');
|
||||||
|
|||||||
Reference in New Issue
Block a user