improve and extract nextDate() function; improve clickhouse-to-lmdbx sync script
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export function nextDate(date: string) {
|
||||
const [year, month, day] = date.split('-').map(Number);
|
||||
const nextDay = new Date(Date.UTC(year, month - 1, day + 1));
|
||||
const nextDateString = nextDay.toISOString().substring(0, 10);
|
||||
return nextDateString;
|
||||
}
|
||||
Reference in New Issue
Block a user