UTC Timezone

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid

UTC Timezone

Postby jamtech338 » Tue May 04, 2010 6:56 pm

VICIDIAL v.2.2.0-svb
BUILD: 90315-1010 VICIDIAL
Asterisk Version: 1.4.21.2
Opensuse 11.x

Hi, can anyone help me..

My webserver is stuck in UTC and as aresult my Real Time Report is displaying incorrect information: please see below.


vicidialer:~ # date
Tue May 4 23:48:39 UTC 2010

Can anyone tell me how to change timezone back to EST?
Thanks, much.

Jamtech338
jamtech338
 
Posts: 40
Joined: Sun Oct 04, 2009 4:42 pm

Postby williamconley » Fri May 07, 2010 8:51 am

at the linux command line:

Code: Select all
export TZ=America/Jamaica
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby jamtech338 » Fri May 07, 2010 1:22 pm

William, you are the Man... that worked, at least it is now in EST as oppose to UTC however, the MM:SS in the Real Time Report screen is still displaying

300:01
300:02
300:22.
etc.. Do you think I need a restart?

Thanks
Jamaica.
jamtech338
 
Posts: 40
Joined: Sun Oct 04, 2009 4:42 pm

Postby williamconley » Fri May 07, 2010 1:32 pm

of course a restart will "lose" the export command's variable, and you'd just be starting over.

but now that you've verified the system variable is missing or wrong, you'll need to find how to fix it.

research your OS and find out where to set the TZ system variable. I do not believe yast will set the system variable for you just by changing your time zone, depending on your setup.

perhaps you should try the vicibox redux install, it may be a cleaner install if that's not what you used.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby jamtech338 » Sat May 08, 2010 6:01 am

Yes, a reboot did remove the export variable and I am back to square one. Also, yast did not allow me to set the system variable.


Does anyone else have any suggestions please, as due to this time problem my server restarts during the day which disconnect all calls because the server sees the time as being 3:00 AM when it should do a scheduled restart.

Furthermore, can someone tell me how to modify the scheduled REBOOT that way I can change the time schedule?

Jamtech338
jamtech338
 
Posts: 40
Joined: Sun Oct 04, 2009 4:42 pm

Postby jamtech338 » Sat May 08, 2010 6:18 am

This was the command I entered that is causing me this headache:

ln -sf /usr/share/zoneinfo/ localtime

Because after the server restarted the time zone would switch to EDT and this is why I entered the above command which solved the problem on the last two occassions.

Is it possible to undo the above command?

Jamtech338
jamtech338
 
Posts: 40
Joined: Sun Oct 04, 2009 4:42 pm

Postby jamtech338 » Sat May 08, 2010 7:25 am

I am comparing the defective Server with properly working servers on my network and here is what I see: the servers with the Time problems have the 'LOCALTIME' file - does any have any thought on this?

Defective Server#1
vicidialer:/usr/share # ls zoneinfo
Africa Chile GB-Eire Israel NZ-CHAT US posix
America Cuba GMT Jamaica Navajo UTC posixrules
Antarctica EET GMT+0 Japan PRC Universal pst
Arctic EST GMT-0 Kwajalein PST8PDT W-SU right
Asia EST5EDT GMT0 Libya Pacific WET utc
Atlantic Egypt Greenwich MET Poland Zulu zone.tab
Australia Eire HST MST Portugal edt
Brazil Etc Hongkong MST7MDT ROK est
CET Europe Iceland Mexico Singapore iso3166.tab
CST6CDT Factory Indian Mideast Turkey localtime
Canada GB Iran NZ UCT locatime

Properly working Server#2

pt45:/usr/share # ls zoneinfo
Africa Canada Factory Iceland MST7MDT Portugal Zulu
America Chile GB Indian Mexico ROK iso3166.tab
Antarctica Cuba GB-Eire Iran Mideast Singapore posix
Arctic EET GMT Israel NZ Turkey posixrules
Asia EST GMT+0 Jamaica NZ-CHAT UCT right
Atlantic EST5EDT GMT-0 Japan Navajo US zone.tab
Australia Egypt GMT0 Kwajalein PRC UTC
Brazil Eire Greenwich Libya PST8PDT Universal
CET Etc HST MET Pacific W-SU
CST6CDT Europe Hongkong MST Poland WET

I am thinking that this "LOCALTIME" file should be remove does this sounds logical?

Jamtech338
jamtech338
 
Posts: 40
Joined: Sun Oct 04, 2009 4:42 pm

Postby williamconley » Sat May 08, 2010 9:29 am

williamconley wrote: of course a restart will "lose" the export command's variable, and you'd just be starting over.

but now that you've verified the system variable is missing or wrong, you'll need to find how to fix it.

research your OS and find out where to set the TZ system variable. I do not believe yast will set the system variable for you just by changing your time zone, depending on your setup.
settings the TZ system variable is not related to the files you are talking about. any variable can be set (randomly if you desire). Vicibox Redux apparently handles this, your OpenSuse installation apparently does not. Find out how to export this variable in a method that will survive reboot OR do it in your startup scripts.

But if you have this problem with your installation, it may be that you have other oddities. :) I love the .iso installs. The guys who develop them do not make "perfect" on the first try, but with enough people issuing feedback reports to them, they clean up very nicely. That would be the case in Vicibox Redux. The latest version of that would seem to be very clean (as evidenced by your #2 box which has time set correctly).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby okli » Sat May 08, 2010 10:43 am

One of the reasons I just love Debain/Ubuntu- compare Google results for "change time zone debian" with 'change time zone opensuse'. Good luck with the latter ;)
I've given up after 15 minutes reading and not finding anything useful. I know it' something very simple, but go find it :)

Eventually came across this page:
http://forums11.itrc.hp.com/service/for ... dId=900771

in which you can see most of what you need.

A bit more:
http://tldp.org/LDP/sag/html/showing-setting-time.html
okli
 
Posts: 671
Joined: Mon Oct 01, 2007 5:09 pm

Postby jamtech338 » Sat May 08, 2010 12:23 pm

Thank guys for your help

I was able to run the TZSELECT and change to EST and here is the result:

You can make this change permanent for yourself by appending the line
TZ='America/Jamaica'; export TZ
to the file '.profile' in your home directory; then log out and log in again.
Here is that TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:
America/Jamaica


Can you please tell me where to locate the 'profiile' file in the my home directory? So that I can make this change permanent..

I looked in the following and didn't find it: cd /home and cd /usr/share but I am not sure.

Jamtech338
jamtech338
 
Posts: 40
Joined: Sun Oct 04, 2009 4:42 pm


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 14 guests