How to configure time zone information in Windows SharePoint Services by modifying the Timezone.xml file (888253)



The information in this article applies to:

  • Microsoft Windows SharePoint Services

INTRODUCTION

This article describes how to configure time zone information in Microsoft Windows SharePoint Services by modifying the Timezone.xml file. Windows SharePoint Services uses the Timezone.xml file to store time zone information. The Timezone.xml file contains a list of time zones. It specifies the start date and time for daylight-saving time and for standard time for each particular time zone.

MORE INFORMATION

You may have to modify the Timezone.xml file in scenarios when the time zone that you want to use for your Windows SharePoint Services Web site does not have static daylight-saving time dates and times. For example, consider the following scenario. You configure your Windows SharePoint Services Web site to use the (GMT+02:00) Jerusalem time zone. However, the start date and time and the end date and time for daylight-saving time in that time zone is different each year. The Timezone.xml file does not specify the start date and time for daylight-saving time or for standard time for the (GMT+02:00) Jerusalem time zone. Therefore, you have to specify the start date and time for standard time and for daylight-saving time in the Timezone.xml file. When you do this, the time is correctly adjusted in Windows SharePoint Services Web sites that are configured to use that time zone when daylight-saving time occurs.

Modifying the Timezone.xml file is a supported method to configure time zone information in Windows SharePoint Services. After you modify the Timezone.xml file to include the date and the time for standard time and for daylight-saving time, restart Microsoft Internet Information Services (IIS) 6.0. To modify the Timezone.xml file, follow these steps:
  1. Modify the Timezone.xml file to include the correct date and time for standard time and for daylight-saving time. To do this, follow these steps:
    1. Start Notepad, and then open the Timezone.xml file.

      The Timezone.xml file is located in the following folder:

      Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Config

    2. Locate the time zone that you want to modify.

      For example, if you want to modify the (GMT+02:00) Jerusalem time zone, locate the following section in the Timezone.xml file:

      <TimeZone ID="27" Name="(GMT+02:00) Jerusalem" Hidden="FALSE">
      <Bias>-120</Bias>
      <DaylightTime>
      <Bias>-60</Bias>
      </DaylightTime>
      </TimeZone>
      

    3. Modify or insert the StandardTime element to specify the correct date and time for standard time, and then modify or insert the DaylightTime element to specify the correct date and time for daylight-saving time.

      The following syntax is used for child elements of the Date element. The Date element specifies when standard time starts and when daylight-saving time starts:
      • <Month>n</Month> represents the nth month when standard time or daylight-saving time starts, where n is a number.
      • <Day>n</Day> represents the nth week of the month when standard time or daylight-saving time starts, where n is a number.
      • <DayOfWeek>n</DayOfWeek> represents the day of the week when standard time or daylight-saving time starts, where n is a number between 0 and 6. Note that Sunday is 0 (zero) and Saturday is 6.
      • <Hour>n</Hour> represents the hour when standard time or daylight-saving time starts, where n is a number that represents the time.
      The following text is an example of the Jerusalem time zone section of the Timezone.xml that is updated to include the correct date and time for standard time and for daylight-saving time:

      <TimeZone ID="27" Name="(GMT+02:00) Jerusalem" Hidden="FALSE">
      <Bias>-120</Bias>
      <StandardTime>
      <Bias>0</Bias>
      <Date>
      <Month>10</Month>
      <Day>1</Day> 
      <Hour>2</Hour>
      <DayOfWeek>5</DayOfWeek>
      </Date>
      </StandardTime>
      <DaylightTime>
      <Bias>-60</Bias>
      <Date>
      <Month>4</Month>
      <Day>1</Day> 
      <Hour>1</Hour>
      <DayOfWeek>3</DayOfWeek>
      </Date>
      </DaylightTime>
      </TimeZone>
      
      

      In this example, daylight-saving time starts on the first Wednesday in April at 1:00 AM.
    4. Click Save on the File menu, and then quit Notepad.
    Note If you install a Windows SharePoint Services software update that includes a version of the Timezone.xml file, your modified version of the Timezone.xml file will be overwritten by the Windows SharePoint Services software update. To prevent your version of the Timezone.xml file from being overwritten, we recommend that you back up the Timezone.xml file. By doing this, you can restore your modified version of the Timezone.xml file to the server.
  2. Restart IIS. To do this, click Start, click Run, type iisreset in the Open box, and then click OK.

REFERENCES

For more information about time zones in Windows SharePoint Services, see the "Regional and Language Settings" topic in the "Reference" section of the Microsoft Windows SharePoint Services Administrator's Guide. To obtain the Microsoft Windows SharePoint Services Administrator's Guide, visit the following Microsoft Web site: For more information about the TimeZone element in the Timezone.xml file, visit the following Microsoft Web site: For more information about the StandardTime element in the Timezone.xml file, visit the following Microsoft Web site: For more information about the DaylightTime element in the Timezone.xml file, visit the following Microsoft Web site:

Modification Type:MajorLast Reviewed:3/25/2005
Keywords:kbhowto kbinfo kbConfig KB888253 kbAudITPRO