How to set the time for a specific local in javascript

Posted by Joao on Stack Overflow See other posts from Stack Overflow or by Joao
Published on 2010-05-18T07:31:20Z Indexed on 2010/05/18 7:40 UTC
Read the original article Hit count: 263

Filed under:
|
|
|

Hi,

i have a problem, and maybe someone can help me, i will explain...

  1. i have the in javascript "var date= new date();" and its give me the local time (browser time) but i want force this data/time for a especific local... for example... Spain. i want everytime that someone enter in the page (from others country) the date need be the spanish hour.

i found some soluction but the problem is the summer time and winter time... we have offset variations because some time is +1 hours and others is +2....

someone can help me in one soluction?

thanks [email protected]

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about date