javascript question..
- Started
- Last post
- 6 Responses
- kerus
when you get the date in a javascript function, does it get it from the web server or from the browsers' computer?
might sound dumb, but its an honest question and im having a brain fart.
thanx
- mitsu0
clients side (local machine clock)
- kappa0
since javascript is (99.9% of the time) run on the clientside, you can be positive that any properties you get will be set by the client.
the date is the time set on the client's computer.
- sp0
i do believe it can be both. but, the norm for simple javascript date displays is client-side. otherwise, you would see the time set for the location of the server.
so, if i was hosting a page with a date display on my server in missouri, you would always see central standard time on a page....if it was server-side.
make sense.
you can write code to adjust for time zones and such...and pull the server time if you want.
- kerus0
thank you!
thats what i thought.. but i was doubting myself for some reason.. just wanted to make sure i didnt have to account for timezone etc..gracias
- bamboofever0
he also does my taxes and the dishes;)