Skip to navigation
Add local client time to a logger with jquery?
07.12.13
var date_now = new Date(); $("#hidden_input_field_id").val(Math.round(date_now.getTime()/1000)) this will add the epoch time to the hidden input field
Reply
Anonymous
you have to consider the difference timezone and subtract the geTimezoneOffset result alert(Math.round(date_now.getTime()/1000)-Math.round(date_now.getTimezoneOffset()*60));
07.12.13
Reply
Anonymous
Information Epoch 1732466138
Live free or die.
Home
Notebook
Contact us