Last active 1747999916

Revision 31bb6a3f44fdd0e8fed0adeb310d06b2b8ac4632

-fix.js Raw
1try {
2 let body = JSON.parse($response.body);
3 const secondsToSubtract = 60 * 60 * 24 * 18200; // ~49.86 năm
4 if (body?.timestamp) {
5 body.timestamp = Number(body.timestamp) - secondsToSubtract;
6 }
7 $done({ body: JSON.stringify(body) });
8} catch (e) {
9 $done({});
10}
timezone.module Raw
1#!name=Timezone Shift
2#!homepage=https://f97.xyz
3#!author=f97
4#!desc=Adjust TimezoneDB timestamp by subtracting ~50 years
5
6[Script]
7TimezoneDB=type=http-response,pattern=timezonedb,requires-body=1,script-path=https://demo.opengist.io/f97/cfa7470912c74cae8834bbd590f86666/raw/HEAD/timezonedb-fix.js
8
9[MITM]
10hostname=%APPEND% api.timezonedb.com