logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


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

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: PHP :: htaccess file doesn't respect server timezone
Author
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: 7288
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


Reply to topic   Topic: PHP :: htaccess file doesn't respect server timezone View previous topic :: View next topic
Post new topic   Forum Index -> Apache