MCPcopy Create free account
hub / github.com/dailydotdev/apps / toLocal

Function toLocal

packages/shared/src/lib/scheduledPost.spec.ts:9–10  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

7const tz = 'Etc/UTC';
8const ONE_DAY_MS = 24 * 60 * 60 * 1000;
9const toLocal = (date: Date): string =>
10 dateFormatInTimezone(date, "yyyy-MM-dd'T'HH:mm", tz);
11
12describe('validatePostScheduledStart', () => {
13 it('returns an ISO string for a valid future time within the limit', () => {

Callers 1

Calls 1

dateFormatInTimezoneFunction · 0.90

Tested by

no test coverage detected