Yealink Forums
Wrong time with dhcp_time and DST auto - T21P E2 - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: Auto Provisioning (/forumdisplay.php?fid=14)
+--- Thread: Wrong time with dhcp_time and DST auto - T21P E2 (/showthread.php?tid=20625)



Wrong time with dhcp_time and DST auto - T21P E2 - deactavo - 08-17-2016 05:31 AM

I am working on auto-provisioning some T21P E2 phones and having trouble with DST and DHCP time.

When DHCP time is enabled, the automatic DST offset is not working. When I disable DHCP time, the DST offset it applied.

I've configured the general provision file to retrieve timezone information from DHCP option 2, this will allow phones in different time zones to get their timezone from their local DHCP server. But I also need the phones to realize if DST is in effect or not.

Here is the entry in the general config file - y000000000052.cfg:
local_time.dhcp_time = 1
local_time.summer_time = 2

My DHCP server has these options:
Option 2 = -18000 seconds (Time Offset)
Option 42 = 10.x.x.x (my local NTP server)

I could update the DHCP option 2, but then I would have to manually change it each time DST changes. This is unreasonable due to the number of locations and time it would take to update all DHCP servers.

Another option is to hardcode the timezone for each extension, but I was hoping to avoid this and have the phones get their timezone from the DHCP server. The phone extensions can move, but the DHCP servers will not.


RE: Wrong time with dhcp_time and DST auto - T21P E2 - Kevin_Yealink - 10-01-2016 12:20 AM

(08-17-2016 05:31 AM)deactavo Wrote:  I am working on auto-provisioning some T21P E2 phones and having trouble with DST and DHCP time.

When DHCP time is enabled, the automatic DST offset is not working. When I disable DHCP time, the DST offset it applied.

I've configured the general provision file to retrieve timezone information from DHCP option 2, this will allow phones in different time zones to get their timezone from their local DHCP server. But I also need the phones to realize if DST is in effect or not.

Here is the entry in the general config file - y000000000052.cfg:
local_time.dhcp_time = 1
local_time.summer_time = 2

My DHCP server has these options:
Option 2 = -18000 seconds (Time Offset)
Option 42 = 10.x.x.x (my local NTP server)

I could update the DHCP option 2, but then I would have to manually change it each time DST changes. This is unreasonable due to the number of locations and time it would take to update all DHCP servers.

Another option is to hardcode the timezone for each extension, but I was hoping to avoid this and have the phones get their timezone from the DHCP server. The phone extensions can move, but the DHCP servers will not.

Dear,

This is Kevin from Yealink support team, nice to know you.

For your issue, you can just do a auto provision to set the DST time.
local_time.time_zone=
local_time.time_zone_name=
local_time.dhcp_time = 1
local_time.summer_time = 2

If you get the offset time of UTC, the time is correct but the phone don't know the location, so it will active the DST. So if you use auto p with the location, then i think it would can help. Please try and let me know if any update.

Due to the national holiday is upcoming, our office will be temporarily out of duty from Oct 1st to Oct 7th.

BR
Kevin