How to enter the local date in a mysql field

1

I have a table in mysql in which with a form I add the records and in them goes a field where the date in which the new entry was made is inserted.

<input name="fechaingreso" type="hidden" value="<?= gmdate('d-m-Y H:i:s', time()) ?>" readonly="readonly" size="20">

It works very well, but it inserts the date of the server and I need it to be the local time of my geographical location.

Thank you for your valuable collaboration. Happy day.

    
asked by Mauricio Guinea 12.01.2018 в 17:50
source

0 answers