add manual timezone override

This commit is contained in:
zefie
2025-07-07 18:24:28 -04:00
parent 7e7c5b142e
commit bdd8442052
4 changed files with 147 additions and 6 deletions

View File

@@ -662,6 +662,10 @@ class WTVShared {
return this.getFileLastModified(file).toUTCString();
}
getFileLastModifiedUTCObj(file) {
return new Date(new Date().setUTCSeconds(this.getFileLastModified(file).getUTCSeconds()));
}
/**
* Returns a RFC7231 compliant UTC Date String from the current time
* @param {Number} offset Offset from current time (+/-)