tags:

views:

166

answers:

3

Is there any way to change the browser's time without manipulating the system clock?

+8  A: 

No. The browser doesn't have a time. The system does.

John Saunders
+1  A: 

The browser doesn't really "have time", it gets its time from the system clock. Of course, if you want to do something particularly nasty, you could override the Date functions.

Date.prototype.getTime = function() { return 1 };
(new Date).getTime(); // 1
mkrause
A: 

You can run the browser in a virtual machine (VMWare/VirtualPC/etc.) and change the time of the OS in the VM.

x4u