malk Posted April 13, 2010 Report Posted April 13, 2010 Hello guys, How do you change the current timezone to my own timezone via HTACCESS? Currently I have "SetEnv TZ Asia/Taipei" on my .htaccess but the php echo date/time still displays the server timezone (PDT -7). Any help please? Thanks! Quote
Tony Posted April 14, 2010 Report Posted April 14, 2010 Hello guys, How do you change the current timezone to my own timezone via HTACCESS? Currently I have "SetEnv TZ Asia/Taipei" on my .htaccess but the php echo date/time still displays the server timezone (PDT -7). Any help please? Thanks! It is not currently possible to use SetEnv TZ and change the timezone via .htaccess. You're best to change it via PHP even if it was Apache as doing it in PHP it's going to work across various environments opposed to via .htaccess which as shown even using us it's not always possible. Quote
malk Posted April 14, 2010 Author Report Posted April 14, 2010 Allright, thanks a lot ill do it with php then! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.