This is a discussion on PHP Change TZ Timezone on shared Linux server within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Hi There, I hope someone can help or at least indicate where this problem may lie: Situation: CentOS 5 server ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
Hi There,
I hope someone can help or at least indicate where this problem may lie: Situation: CentOS 5 server running php, mysql, apache (latest), etc etc. This is a "shared hosting" server in the US - I am in Australia and am developing a website for an Australian company. I have used the TZ time zone in .htaccess to change/calculate local timezone however nothing appears to help the situation. I do not have root access to the server (obviously) and support have done all that they are aware of to try and help with this issue - we havn't found anything that works up to now. Wouldn't matter so much but site is a shop therefore sales/timestamps are very important. Any help is more than appreciated - if someone has the answer that's great even a pointer to a resolution would be fantastic. Cheers |
| Sponsored Links | ||
|
|
|
||||
|
You need root access to change timezone. For accessing and setting environment variable use php putenv()
Code:
putenv ('TZ=Europe/Amsterdam');
mktime(0,0,0,1,1,1970);
echo date("H:i:s");
Last edited by nixcraft; 05-27-2008 at 09:09 AM. |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OpenBSD configure change DNS name server IP address - DNS Client Resolution | rockdalinux | Getting started tutorials | 0 | 06-15-2007 10:14 PM |
| Howto change ip address in Linux | chiku | Networking, Firewalls and Security | 1 | 04-29-2007 04:51 PM |
| mysql shared libraries | shankar100 | Web servers | 1 | 02-20-2007 08:23 AM |
| set or how to change dns setting ubuntu linux network | chiku | Linux software | 1 | 07-17-2006 06:30 PM |
| change password under linux | Linux software | 1 | 01-18-2006 07:38 PM | |