Answer the question
In order to leave comments, you need to log in
Function to get server time?
Good afternoon!
I give static html through Express. exp.use(express.static('site'));
The html code has a function to get the time.
In this case, what time will be stored in the Date() object - client time or server time? var Date_default = new Date();
Answer the question
In order to leave comments, you need to log in
If this function is executed on the server, then the server, if on the client, then the client. It's obvious. Since you have static html, this script is executed on the client.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question