A
A
Ascorny2016-09-23 16:40:36
PHP
Ascorny, 2016-09-23 16:40:36

How to make it so that the date of submitting the form is written?

There is an application form when sending which the exact time of sending is prescribed. But the time in Moscow is prescribed, how can I change it so that the time is shown in the region?

$mail_template .= '<p>Время отправки: ' . date('d-m-Y h:i:s') . '</p>';

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rikcon, 2016-09-23
@Ascorny

You need https://secure.php.net/manual/ru/function.date-def...
If in code.
If you have access to php.ini then change the timezone there, here is the list of zones https://secure.php.net/manual/en/timezones.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question