Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
strtotime() и date() странно преобразуют даты
|
|||
|---|---|---|---|
|
#18+
Есть такой простенький код. Код: php 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Вот результат его работы: 26.12.10 Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in D:\WebServers\home\localhost\www\syst\Ora2MySQL\date_bug.php on line 4 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in D:\WebServers\home\localhost\www\syst\Ora2MySQL\date_bug.php on line 4 2010-12-26 00:00:00 19.11.06 Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in D:\WebServers\home\localhost\www\syst\Ora2MySQL\date_bug.php on line 9 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in D:\WebServers\home\localhost\www\syst\Ora2MySQL\date_bug.php on line 9 2013-10-31 19:11:06 Вопрос: почему 2010-й год конвертируется нормально, а 2006-й год превращается в 2013 ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.10.2013, 09:58 |
|
||
|
strtotime() и date() странно преобразуют даты
|
|||
|---|---|---|---|
|
#18+
P.S. Предупреждения о таймзоне убрал, вставив строку Код: php 1. Но проблему с конвертацией даты это не решило. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.10.2013, 10:05 |
|
||
|
strtotime() и date() странно преобразуют даты
|
|||
|---|---|---|---|
|
#18+
... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.10.2013, 11:46 |
|
||
|
|

start [/forum/topic.php?fid=23&msg=38447787&tid=1463320]: |
0ms |
get settings: |
6ms |
get forum list: |
8ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
35ms |
get topic data: |
6ms |
get forum data: |
1ms |
get page messages: |
23ms |
get tp. blocked users: |
1ms |
| others: | 204ms |
| total: | 288ms |

| 0 / 0 |
