Recommended Posts

Posted

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!

Posted

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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...