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

Function getLocalUtcOffset

packages/shared/src/features/lfg/lib/format.ts:59–60  ·  view source on GitHub ↗
(now = new Date())

Source from the content-addressed store, hash-verified

57
58// The reader's current offset, which leads the time zone pickers.
59export const getLocalUtcOffset = (now = new Date()): number =>
60 -now.getTimezoneOffset() / 60;
61
62// The offset the API reads from the profile's time zone, which is what a post
63// shows. It reads a profile without one as UTC.

Callers 3

LfgBoardFunction · 0.90
HelperFormFunction · 0.90
getUtcOffsetForTimeZoneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected