MCPcopy Create free account
hub / github.com/csev/py4e / setOffsetToLocal

Function setOffsetToLocal

code/gmane/Chart.bundle.js:3208–3218  ·  view source on GitHub ↗
(keepLocalTime)

Source from the content-addressed store, hash-verified

3206 }
3207
3208 function setOffsetToLocal (keepLocalTime) {
3209 if (this._isUTC) {
3210 this.utcOffset(0, keepLocalTime);
3211 this._isUTC = false;
3212
3213 if (keepLocalTime) {
3214 this.subtract(getDateOffset(this), 'm');
3215 }
3216 }
3217 return this;
3218 }
3219
3220 function setOffsetToParsedOffset () {
3221 if (this._tzm) {

Callers

nothing calls this directly

Calls 1

getDateOffsetFunction · 0.85

Tested by

no test coverage detected