Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 31st March 2008, 17:52
josej josej is offline
Junior Member
Join Date: Mar 2008
Posts: 4
Thanks: 1
Thanked 1 Time in 1 Post
Default Multiple TimeZone per Site/User chrooted


I'm jose from Spain, in advance, sorry my english is very bad,

I have ISPConfig installed in two servers with Linux HA and DRBD

One of the sites is an E-Commerce site in EEUU ( .us ) and another E-Commerce site is in Spain ( .es ).

My question is about TimeZones

I want differents TimeZones per Site, I have read somthing about this, and i think that its possible for differents users, modifying /home/someuser/.bashrc in chrooted enviroment by setting the TZ variable.

With ISPConfig and his users its possible to do somthing similar?

If not is possible, what can I do?

sorry but my english is too bad

Reply With Quote
Sponsored Links
Old 1st April 2008, 17:21
josej josej is offline
Junior Member
Join Date: Mar 2008
Posts: 4
Thanks: 1
Thanked 1 Time in 1 Post
Default I have one solution

My solution simple.

On the init script (config for E-Commerce in USA or Spain or France etc..) in the E-Commerce Site I add the line:

$GLOBALS["time_zone_site"]= "America/Los_Angeles";

And in the interface to Adodb,in the "connect function"

function connectFunction{
$this->db = new ADOnewConnection('mysqli');
$this->db->Execute("SET time_zone = '".$GLOBALS["time_zone_site"]."'");

Thats all...
Reply With Quote
The Following User Says Thank You to josej For This Useful Post:
falko (1st April 2008)


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig on multiple servers - Certificate error martinfst Developers' Forum 5 7th February 2010 17:17
ISPconfig to host multiple domains in one IP with multiple DynDns addresses agelospanagiotakis Installation/Configuration 23 2nd April 2008 12:10
Multiple name servers? webking General 1 13th April 2007 10:24
Multiple IPs on a single ISPConfig install? Craig Installation/Configuration 4 14th December 2006 19:22
Multiple MySQL Queries - with Postfix-mysql, courier-authmysql, maildrop-mysql... snowfly HOWTO-Related Questions 4 7th July 2006 05:19

All times are GMT +2. The time now is 02:07.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.