Files
wehub-resource-sync 2114b14ee0
Sync main into demo / sync (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:35:26 +08:00

9 lines
317 B
TypeScript

import * as TimeService from '../../../os/TimeService';
export function toLocalDateKey(ts: number) {
const date = TimeService.fromTimestamp(ts);
const month = String(date.getMonth() + 1).padStart(2, '0');
const day = String(date.getDate()).padStart(2, '0');
return `${date.getFullYear()}-${month}-${day}`;
}