Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FYI Changing DST on Mitel Mail

Status
Not open for further replies.

TETech

IS-IT--Management
Feb 26, 2006
39
CA
Body/Solutions
In 2007 Daylight Saving Time begins on the second Sunday in March and ends on the first Sunday in November. This pattern will be followed by all US states and Canadian provinces which observe daylight saving time. Previously, the US and Canada had observed Daylight Saving Time from the first Sunday in April until the last Sunday in October.

This change in Daylight Saving Time will keep Canada's Daylight Saving Time pattern consistent with the United States which enacted into law a broad energy bill that will extend Daylight Saving Time in the same manner.

Nupoint Messenger release 10.x and later. (Patch Pending.)
Nupoint Messenger 10.x and later uses the MSL 7.0 which is based on Red Hat Linux which already has the support for the new DST observance dates of the second Sunday in March and ends on the first Sunday in November that are coming into effect this Spring. A patch will be available before End of February to correct issues with certain timezones. To check or set the timezone, log into the server manager and select the Date and Time menu in the Configuration menu.

Nupoint Messenger release 9.x
This release was run on the MSL 6.1 release which does not support the new DST dates. The system will continue to follow the old dates for automatic DST adjustment and will need to manually set to revert it to the correct time. The suggested action by Mitel is to upgrade any Nupoint 9.0 systems to the latest release, which is currently 10.0 UR2, to once again be able to take advantage of automatic DST time changes on the correct dates

Nupoint Messenger release 6.x to 8.x.
NOTE: - This section ONLY applies to Nupoint releases that run on the QNX operating system. i.e. release 6.x to 8.x.
The Nupoint Messenger product has supported automatic daylight savings time changes since the 6.x release. The algorithm that controls this is part of the QNX operating system used in Nupoint releases from 6.x to 8.x. These releases used the S-O-Y menu that allowed the system to be set up for different time zones but does not allow any changes to be made from the old DST dates of first Sunday in April to last Sunday in October. The following section of this bulletin will describe in detail how the timezone file in these systems may be manually edited to work with the new DST observed dates of the second Sunday in March and ends on the first Sunday in November.

Manually modifying the TZ rule in 6.x to 8.x Nupoint systems.

6.x to 8.x systems run on the QNX operating systems. The timezone is set using the S-O-Y menu and selecting the correct timezone for your region e.g. EST, PST etc. The selected rule would then follow the preprogrammed automatic DST time adjustments on first Sunday in April until the last Sunday in October. To change this default setting that is set via the S-O-Y menu you will need to edit the timezone file that controls the rule.

The timezone rule is contained in the /usr/vm/config/timezone file and for the Eastern Standard Time (EST) will look like this:-

Eastern
export TZ=EST05EDT04,M4.1.0/2,M10.5.0/2

The explanation of this rule is as follows:-

EST05EDT04 indicates that we observe DST and are using the EST time zone which is 5 hours behind UTC (UTC = Coordinated Universal Time (modern Greenwich -GMT- reference time.) ) but changes to 4 hours behind UTC in the summer.

M4 indicates we switch to DST in Month 4 (April)

1.0 means the first (1) Sunday (0) in April

/2 means we switch at 2am

M10 indicates we switch back from DST in month 10 (October)

5.0 means the 5th (or last) Sunday (0) in October

/2 means we switch at 2am.

To modify this rule for the new DST observance times of the second Sunday in March and ends on the first Sunday in November it will look like this:

Eastern
export TZ=EST05EDT04,M3.2.0/2,M11.1.0/2
| | | | | |
March = M3------------ | | | | |
Second Sunday = 2.0------ | | | |
2am = 2--------------------- | | |
November = M11----------------- | |
First Sunday = 1.0----------------- |
2am = 2-------------------------------

How to use vi editor to modify the timezone file in QNX


To edit the timezone file perform the following steps. (Note all qnx commands are case sensitive)
1) Type Q at the main menu and respond with a Y at the Go to QNX? [y/N] prompt.
2) Type the command cd /usr/vm/config to change directory.
3) Type the command chmod a+w timezone
4) Type the command TERM=vt100. (remember qnx is case sensitive !)
5) Type the command vi timezone To open the timezone file using the vi editor.

The vi editor is a primitive editor and it is not the intent of this bulletin to teach all the vi commands. It is important to know that there are two modes to this editor, command mode and edit mode. When you start the editor up you are in command mode. If you are familiar with vi then go ahead and edit the file so that it will follow the new DST observance by using the example above as a guide. If you are not familiar with vi then follow the next steps to add a new line in edit mode and to delete the current line in command mode and then save the new file and exit

1) Press the I key to enter insert or edit mode.
2) Move the cursor to the end of the first line and press the ENTER key
3) Type in the new TZ rule (the existing one will be right below it for you to use as a guide)
4) Press ENTER when finished with the new line.

Your file should look like this:-

# Eastern
export TZ=EST05EDT04,M3.2.0/2,M11.1.0/2
|| (flashing cursor here)
export TZ=EST05EDT04,M4.1.0/2,M10.5.0/2
~
~
~

5) Press the ESC key once to switch back to command mode
6) Press dd (double D) to delete the empty line the cursor is currently on.
7) Press dd again to delete the next line which is the original file content.
8) Press : (the colon key) followed by wq to write and quit the editor
9) Type the command cat timezone to see the result of your work.
10) Shutdown and reboot the system for the new file to take effect.

The system will now follow the new timezone rule. This new rule will remain in effect until you either change it using the S-O-Y timezone menu or edit it again with different values. If you use the S-O-Y menu to set the timezone it will revert the file back to the old DST rule of first Sunday in April until the last Sunday in October.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top