Looking for an Add-on to Modify Timestamps

Board for discussions around the Basilisk web browser.

Moderator: Basilisk-Dev

User avatar
qudtls
New to the forum
New to the forum
Posts: 1
Joined: 2025-01-14, 17:39

Looking for an Add-on to Modify Timestamps

Unread post by qudtls » 2025-02-28, 19:36

Could you recommend a simple timestamp modification add-on for the Basilisk browser?
I need to hide the timezone of my operating system for certain reasons.
Thank you in advance for your reply.

User avatar
Basilisk-Dev
Lunatic
Lunatic
Posts: 474
Joined: 2022-03-23, 16:41
Location: Chamber of Secrets

Re: Looking for an Add-on to Modify Timestamps

Unread post by Basilisk-Dev » 2025-02-28, 20:01

If you are on Linux or FreeBSD you can do something like this. You can also do it on MacOS if you cd into the Contents/MacOS directory inside of Basilisk.app. I have no idea if this works for Windows.

Code: Select all

TZ=UTC ./basilisk
I don't know of any extensions to change this but I can see why that'd be a useful feature for both privacy and for development.
Basilisk Project Owner

viewtopic.php?f=61&p=230756

User avatar
adoxa
Lunatic
Lunatic
Posts: 360
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: Looking for an Add-on to Modify Timestamps

Unread post by adoxa » 2025-03-01, 01:00

Setting TZ works, but not in that manner, you have to set it directly.

Code: Select all

set TZ=UTC
start basilisk
(That's assuming Basilisk is in App Paths, don't remember if the installer does that or I did it myself.)

User avatar
therube
Board Warrior
Board Warrior
Posts: 1701
Joined: 2018-06-08, 17:02

Re: Looking for an Add-on to Modify Timestamps

Unread post by therube » 2025-03-03, 18:06


User avatar
adoxa
Lunatic
Lunatic
Posts: 360
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: Looking for an Add-on to Modify Timestamps

Unread post by adoxa » 2025-03-04, 00:28

Here's what that reports using Basilisk/Windows. Default (no TZ set):

Code: Select all

Time on Server	Mon, 03 Mar 2025 23:57:42 GMT
Time on Local Machine	Tue Mar 04 2025 10:20:57 GMT+1000 (E. Australia Standard Time)
Time from Intl.DateTimeFormat #1	Tuesday, March 4, 2025 at 10:20:57 AM GMT+10
Time from Intl.DateTimeFormat #2	Tuesday, 4 March 2025, 10:20:57 am Australian Eastern Standard Time
Internet Beat	around @56
Timezone	Australia/Brisbane
Timezone Offset	-600 minutes
As expected (although I'm sure when I did this a bit earlier the Beat was @40).

Setting TZ=UTC:

Code: Select all

Time on Server	Mon, 03 Mar 2025 23:57:42 GMT
Time on Local Machine	Tue Mar 04 2025 00:19:34 GMT+0000 (UTC)
Time from Intl.DateTimeFormat #1	Tuesday, March 4, 2025 at 10:19:34 AM GMT+10
Time from Intl.DateTimeFormat #2	Tuesday, 4 March 2025, 10:19:34 am Australian Eastern Standard Time
Internet Beat	around @55
Timezone	Australia/Brisbane
Timezone Offset	0 minutes
So DateTimeFormat still has the proper value, as does Timezone (and Beat, I guess). That suggests to properly spoof it you'd have to modify system time itself (in the OS or hooking the calls or direct browser support).