Call times don't follow DST changes

All installation and configuration problems and questions

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

Call times don't follow DST changes

Postby ddsDave » Mon Mar 26, 2007 4:38 am

When we switched to BST from GMT over the weekend the call time bands we have defined did not follow the change and are now an hour out. As a quick fix I've redefined the times, but that's hardly a correct solution. How do I associate a call time definition with a timezone in such a way that it follows DST changes?
ddsDave
 
Posts: 7
Joined: Mon Mar 26, 2007 4:30 am

Postby enjay » Mon Mar 26, 2007 10:44 am

Does your server have the correct timezone set on it?

-Art
enjay
 
Posts: 806
Joined: Mon Jun 19, 2006 12:40 pm
Location: Utah

Postby ddsDave » Tue Mar 27, 2007 4:11 am

Yes, the server timezone is correct and the server time did adjust for the DST change.
ddsDave
 
Posts: 7
Joined: Mon Mar 26, 2007 4:30 am

Postby mflorell » Tue Mar 27, 2007 5:53 am

Did you reboot your servers after making the change?

VICIDIAL goes of of the timezone details and DST details that perl/PHP send it(along with the settings in the servers and phones tables). If the server is not rebooted, or every application restarted, you may still be using the old timezone definitions on those applications.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ddsDave » Wed Mar 28, 2007 4:17 am

Why would I do that? DST changes are automatic.
ddsDave
 
Posts: 7
Joined: Mon Mar 26, 2007 4:30 am

Postby albatroz » Wed Mar 28, 2007 7:25 am

What should be correct timezone for the server?
GMT?


enjay wrote:Does your server have the correct timezone set on it?

-Art
albatroz
 
Posts: 85
Joined: Tue Sep 19, 2006 8:10 am
Location: Peru

Postby ddsDave » Wed Mar 28, 2007 7:36 am

GMT
ddsDave
 
Posts: 7
Joined: Mon Mar 26, 2007 4:30 am

Postby mflorell » Wed Mar 28, 2007 4:44 pm

DST changes are not automatic for all applications, as some of us in the US found out with our DST change this year. Some programs will not reload the Timezone information after they are launched.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

About server time and customer's time

Postby albatroz » Wed Mar 28, 2007 4:53 pm

I put in the BIOS of my server the GMT time, but VICIDIAL shows as the customer's time a different one. I would like to know how is it calculated...
albatroz
 
Posts: 85
Joined: Tue Sep 19, 2006 8:10 am
Location: Peru

Postby mflorell » Wed Mar 28, 2007 5:05 pm

what does PHP show as isdst()?

What does perl show the time() command output?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ddsDave » Thu Mar 29, 2007 4:45 am

There doesn't seem to be a isdst() function in PHP? phpinfo() says

date/time support enabled
Timezone Database Version 2006.1
Timezone Database internal
Default timezone Europe/London

I dont know perl so I dont know how to display the time() value.
ddsDave
 
Posts: 7
Joined: Mon Mar 26, 2007 4:30 am

Postby mflorell » Thu Mar 29, 2007 8:42 am

Sorry about that, internal function.

For php use:

<?
echo date("I");
?>

For perl use:

#!/usr/bin/perl
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
print "$isdst\n";
exit;


If they output 1 then they think you are in DST.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ddsDave » Thu Mar 29, 2007 9:01 am

Both return 1.
ddsDave
 
Posts: 7
Joined: Mon Mar 26, 2007 4:30 am

Postby mflorell » Thu Mar 29, 2007 9:18 am

That means that both of them still think that your machine is set to a time zone that observes DST and they are changing the hour accordingly.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby albatroz » Thu Mar 29, 2007 10:29 am

In my case also returns the value 1, what does it mean?
albatroz
 
Posts: 85
Joined: Tue Sep 19, 2006 8:10 am
Location: Peru

Postby ddsDave » Fri Mar 30, 2007 4:47 am

But I *AM* in a time zone that observes DST & it is the DST period. That's the point. The server (along with everyone else) switched to DST correctly, only ViciDial's "Dial Time" definitions stayed relative to GMT/UCT & didn't adapt.
ddsDave
 
Posts: 7
Joined: Mon Mar 26, 2007 4:30 am

Postby mflorell » Fri Mar 30, 2007 6:35 am

What version of astguiclient?

Did you upgrade from an earlier version?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: About server time and customer's time

Postby albatroz » Fri Mar 30, 2007 6:46 am

These are my versions:

VICIDIAL ADMIN
VERSION: 2.0.90 BUILD: 70302-1111

VICIDIAL WEB CLIENT
VERSION: 2.0.122 BUILD: 70226-1252


albatroz wrote:I put in the BIOS of my server the GMT time, but VICIDIAL shows as the customer's time a different one. I would like to know how is it calculated...
albatroz
 
Posts: 85
Joined: Tue Sep 19, 2006 8:10 am
Location: Peru

Postby mcargile » Wed Apr 11, 2007 10:14 am

Seem to be having a similar problem with one of our clients in Denver. The system was put together about two weeks ago and has been having testing done on it. Today was the first day it was actually going to be put into service. Mind you the testing has only taken place in the afternoon.

Well this morning when they fired it up, the dialable lead count was wrong. Upon closer inspection someone had forgotten to take the system off the default GMT offset of -5 and put it on -7. I did so and rebooted the box. The leads are still messed up however.

The servers date command returns:
Wed Apr 11 09:09:36 MDT 2007

But when I go into the list it shows the local time for the various timezones wrong:
TIME ZONES WITHIN THIS LIST:
GMT OFFSET NOW (local time) CALLED NOT CALLED
-8.00 (Wed Apr 2007 07:09) 0 4707
-7.00 (Wed Apr 2007 08:09) 0 475
-6.00 (Wed Apr 2007 09:09) 2000 5092
-5.00 (Wed Apr 2007 10:09) 2875 0

I know that right now it is 11:09 on the East Coast (GMT -5).
the astguiclient version is 2.0.2
Last edited by mcargile on Mon Aug 20, 2007 11:53 am, edited 1 time in total.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Postby mflorell » Wed Apr 11, 2007 12:28 pm

What is the GMT offset and time zone of Linux set to on that machine?

What are the phones table GMT offset set to?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby mcargile » Wed Apr 11, 2007 12:49 pm

the time zone MDT, the offset is -6, according to date. We set the GMT offset of the server to -6 after my last post. There are no phones just remote agents.

One issue I though of was that the leads have their GMT offset adjusted for DST because they populate the vicidial_list table themselves
Last edited by mcargile on Mon Aug 20, 2007 11:53 am, edited 1 time in total.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Postby mflorell » Wed Apr 11, 2007 3:06 pm

Did you run the ADMIN_adjust_GMTnow_on_leads.pl
after you changed timezones?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby mcargile » Wed Apr 11, 2007 3:16 pm

We seem to be having trouble doing some math here. (been an interesting week)

The leads need to have the GMT offset without DST and the server needs the GMT offset without DST as well.

So if the server is on the US East Coast the servers GMT offset would be -5 and a lead on the US East Coast would have an offset of -5 as well? I.E. during the switch from winter time to summer time (in DST) nothing should change?
Last edited by mcargile on Mon Aug 20, 2007 11:54 am, edited 1 time in total.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Postby mcargile » Wed Apr 11, 2007 5:12 pm

I ran the ADMIN_adjust_GMTnow_on_leads.pl script; however, the lists page in the admin section is still saying that the local time of GMT -6 is:
TIME ZONES WITHIN THIS LIST:
GMT OFFSET NOW (local time) CALLED NOT CALLED
-6.00 (Wed Apr 2007 15:43) 9289 10915


Now when I pull a lead from their database I have this info:
| 1 | 2007-04-11 13:57:00 | 2007-04-11 14:03:11 | NA | VDAD | XXXXXXX | XXXXXXX | 101 | -6.00 | Y | NULL | 217XXXXXXX | NULL | ANDREW | NULL | XXXXXX | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | 1 |

(I Xed out parts of the leads info to protect the clients privacy.)

When I check Verizons page for that areacode it tells me that the local time there is:
Illinois Chicago, Springfield 4/11/2007 4:43:35 PM


Which is one hour ahead of what the list page is showing. Does this mean that the leads need to have the gmt_offset_now adjusted for day light savings time? Reading the comments of the ADMIN_adjust_GMTnow_on_leads.pl script I get the impression that is what the script is supposed to do.

The client did not use the lead loaders with Vicidial, they put them in the DB themselves.
Last edited by mcargile on Mon Aug 20, 2007 11:54 am, edited 1 time in total.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Postby mflorell » Wed Apr 11, 2007 9:27 pm

Doesn't look like your phone_code field is filled in. This has to be a 1 for the ADMIN adjustGMT now script to update those leads properly for the USA.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 74 guests