logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



PHP :: htaccess file doesn't respect server timezone

 
Post new topic   Reply to topic    Apache Forum Index -> Apache



View previous topic :: View next topic  
Author Message
antes



Joined: 09 Jul 2017
Posts: 1

PostPosted: Sun 09 Jul '17 7:59    Post subject: PHP :: htaccess file doesn't respect server timezone Reply with quote

.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: 6225
Location: Germany, Next to Hamburg

PostPosted: Sun 09 Jul '17 19:32    Post subject: Reply with quote

Apache does not use the timezone defined from PHP, but the zimezone from server.
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1