Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: PHP :: htaccess file doesn't respect server timezone |
|
Author |
|
antes
Joined: 09 Jul 2017 Posts: 1
|
Posted: Sun 09 Jul '17 7:59 Post subject: PHP :: htaccess file doesn't respect server timezone |
|
|
.htaccess file set as follows:
Code: | php_value date.timezone ‘Pacific/Auckland’
RewriteEngine on
RewriteRule ^$ http://urlgoeshere.com/news/%{TIME_YEAR}%{TIME_MON}%{TIME_DAY}-%{TIME_HOUR}00-048.mp3 [R=301,L] |
phpinfo.php shows the timezone is set to Pacific/Auckland, though the script rewrites according to Pacific Timezone. What am I missing? Thanks. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7377 Location: Germany, Next to Hamburg
|
Posted: Sun 09 Jul '17 19:32 Post subject: |
|
|
Apache does not use the timezone defined from PHP, but the zimezone from server. |
|
Back to top |
|
|
|
|
|
|