0

new Date().getTime();

Where does new Date().getTime(); returns time from? User's Computer or The Server

11th Nov 2020, 4:45 PM
Samuel Wekobosya
Samuel Wekobosya - avatar
3 Réponses
+ 6
Good question. It depends on where this script is written at. If it is frontend files, the time is user time. If it is backend files, the time is server time.
11th Nov 2020, 4:50 PM
Gordon
Gordon - avatar
+ 3
Since it works offline Computer
11th Nov 2020, 4:50 PM
Ananiya Jemberu
Ananiya Jemberu - avatar
+ 1
Clients local environment so possibly sololearns windows server?
11th Nov 2020, 6:23 PM
D_Stark
D_Stark - avatar