I am trying to input the current time as returned by new Date()...
$('#TSE').val(new Date().toJSON().substring(11,16));
...in a time input field:
<input type="time" id="TSE">
The value has the format hh:mm and is accepted by the input field.
The problem is that it is displaying 1 hour less than the actual time.
For example, if new Date() would be 2012-11-16T11:59, the input field would show 10:59
I am experiencing this problem with Safari Mobile (web app). My timezone is CET (GMT+1). We lost DST a few weeks ago.
Thank you.