From f2056f17d1b7f4a07a5400bd9ee9beaa0e854809 Mon Sep 17 00:00:00 2001 From: Masco Skray Date: Thu, 11 Oct 2018 23:36:26 +0800 Subject: [PATCH] fix(uoj/1): change server time's timezone that always set to UTC Since PHP 5.1.0 (when the date/time functions were rewritten), we need to specify the default timezone. Otherwise the timezone will always set to UTC that may cause problem or cause confusion. We set the default timezone to Asia/Shanghai. If you are not at the area of this timezone, you can change it manually. --- uoj/1/.htaccess | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uoj/1/.htaccess b/uoj/1/.htaccess index 2d1ef76..bab8ebe 100644 --- a/uoj/1/.htaccess +++ b/uoj/1/.htaccess @@ -10,6 +10,8 @@ php_value upload_max_filesize 1000M php_value session.gc_probability 1 php_value session.gc_divisor 1000 +php_value date.timezone 'Asia/Shanghai' + DirectorySlash Off DirectoryIndex