I have this situation:

-i have a form with a field to select date (using jquery datepicker)
-i convert the date, using strtotime, to insert it to database

The issue is that the jquery datepicker is using the user timezone, but i want to use the server timezone.

Is possible to do it?

Edit: i managed to make something, i am setting the minim date with the server time.
Code: 
$new_date = date("D M j Y H:i:s",time());
echo '<script type="text/javascript">
$(document).ready(function() {
    $(".mws-dtpicker").datetimepicker({minDate: new Date("'.$new_date.'")});
});    
</script>';
t3od0r Reviewed by t3od0r on . Javascript and php time I have this situation: -i have a form with a field to select date (using jquery datepicker) -i convert the date, using strtotime, to insert it to database The issue is that the jquery datepicker is using the user timezone, but i want to use the server timezone. Is possible to do it? Edit: i managed to make something, i am setting the minim date with the server time. Rating: 5