J
jodleren
I just got an idea... as others working with time / ajax getting a
correct timer is a problem.
I looks at
d = new Date();
offset=Math.abs(d.getTimezoneOffset())/60
but that returns 3, while I am at GMT+2. date.getHours adds tne 2 hrs
causing my probvlem.
Then I realised, that the answer is in front of me.
var d = new Date();
t=new Date(new Date() - d);
offset=t.getHours(); // time offset!
This is what I am looking for at all times.
Probably there is a better way of getting the time "0", but I am not
that much a java freek
WBR
Sonnich
correct timer is a problem.
I looks at
d = new Date();
offset=Math.abs(d.getTimezoneOffset())/60
but that returns 3, while I am at GMT+2. date.getHours adds tne 2 hrs
causing my probvlem.
Then I realised, that the answer is in front of me.
var d = new Date();
t=new Date(new Date() - d);
offset=t.getHours(); // time offset!
This is what I am looking for at all times.
Probably there is a better way of getting the time "0", but I am not
that much a java freek
WBR
Sonnich