MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / setOffsetToLocal

Function setOffsetToLocal

tests/test_code/js/moment/moment.js:3362–3372  ·  view source on GitHub ↗
(keepLocalTime)

Source from the content-addressed store, hash-verified

3360 }
3361
3362 function setOffsetToLocal(keepLocalTime) {
3363 if (this._isUTC) {
3364 this.utcOffset(0, keepLocalTime);
3365 this._isUTC = false;
3366
3367 if (keepLocalTime) {
3368 this.subtract(getDateOffset(this), 'm');
3369 }
3370 }
3371 return this;
3372 }
3373
3374 function setOffsetToParsedOffset() {
3375 if (this._tzm != null) {

Callers

nothing calls this directly

Calls 1

getDateOffsetFunction · 0.85

Tested by

no test coverage detected