Skip to content

Commit 5201041

Browse files
authored
Update 2998527-incorrect-time-timezoneinfo.md
Edit review per CI 6382
1 parent 781c9a9 commit 5201041

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

support/developer/dotnet/framework/general/2998527-incorrect-time-timezoneinfo.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
2-
title: KB2998527 causes wrong code lookups on past dates
3-
description: This article explains the problem where update 2998527 causes incorrect code lookups on past dates when the application use TimeZoneInfo.
2+
title: KB2998527 Causes Wrong Code Lookups on Past Dates
3+
description: This article explains how update 2998527 causes incorrect code lookups on past dates when an application uses TimeZoneInfo.
44
ms.date: 07/08/2025
55
ms.reviewer: leecow
66
ms.custom: sap:Class Library Namespaces
77
ms.topic: troubleshooting-problem-resolution
8-
#customer intent: As a developer, I want to fix incorrect code lookups on past dates when using the TimeZoneInfo class so my application handles time zones correctly.
8+
#customer intent: As a developer, I want to fix incorrect code lookups on past dates when I use the TimeZoneInfo class so that my application handles time zones correctly.
99
---
1010
# Update 2998527 causes incorrect code lookups on past dates
1111

12-
This article explains the problem where [KB 2998527](https://support.microsoft.com/help/2998527) causes incorrect code lookups on past dates when you use the `TimeZoneInfo` class in an application.
12+
This article explains a problem in [Microsoft Knowledge Base article 2998527](https://support.microsoft.com/help/2998527) that causes incorrect code lookups on past dates when you use the `TimeZoneInfo` class in an application.
1313

1414
_Applies to:_ .NET Framework 4.6, 4.5
1515

1616
_Original KB number:_ 3012229
1717

1818
## Symptoms
1919

20-
After October 26, 2014, applications that are hosted on systems that have the September 2014 Russian time zone update ([KB 2998527](https://support.microsoft.com/help/2998527)) installed and that use the Microsoft .NET Framework might calculate time incorrectly when they use the `TimeZoneInfo` class.
20+
After October 26, 2014, applications that are hosted on systems that have the September 2014 Russian time zone update ([KB 2998527](https://support.microsoft.com/help/2998527)) installed and that use Microsoft .NET Framework might calculate time incorrectly when they use the `TimeZoneInfo` class.
2121

2222
This problem occurs in the following time zones:
2323

@@ -44,19 +44,19 @@ DateTime dt = TimeZoneInfo.ConvertTimeFromUtc(new DateTime(2013, 6, 1), tz);
4444
Console.WriteLine(dt);
4545
```
4646

47-
Before you apply KB 2998527, this code correctly returns the date and time as June 1, 2013 at 04:00. After you apply update, the code incorrectly returns the date and time as June 1, 2013 at 03:00.
47+
Before you apply KB 2998527, this code correctly returns the date and time as June 1, 2013 at 04:00. After you apply the update, the code returns the date and time incorrectly as June 1, 2013 at 03:00.
4848

4949
## Cause
5050

51-
This problem occurs because a change in the base offset of a time zone breaks any code in the affected time zones if that code looks up past dates by using `TimeZoneInfo` in the .NET Framework. This is because the .NET Framework can't track year-to-year changes in the base offset.
51+
This problem occurs because a change in the base offset of a time zone breaks any code in the affected time zones if that code looks up past dates by using `TimeZoneInfo` in .NET Framework. This problem occurs because .NET Framework can't track year-to-year changes in the base offset.
5252

53-
This problem was exposed by the changes to Russian time zones that are described in Microsoft Knowledge Base article 2998527.
53+
This problem was exposed by the changes to Russian time zones that are described in KB 2998527.
5454

55-
The .NET Framework previously ignored the UTC offset that is set in an internal adjustment rule. Instead, it used the base UTC offset in certain calculations. The .NET Framework also ignored adjustment rules that don't have daylight transitions.
55+
Previously, .NET Framework ignored the UTC offset that's set in an internal adjustment rule. Instead, it used the base UTC offset in certain calculations. .NET Framework also ignored adjustment rules that don't have daylight transitions.
5656

5757
## Solution
5858

59-
If your .NET application uses `TimeZoneInfo`, update it with the latest Windows time zone information. If applicable, you should also ensure that your application properly handles the latest time zone rules for Russia.
59+
If your .NET application uses `TimeZoneInfo`, update it to use the latest Windows time zone information. If applicable, you should also make sure that your application correctly handles the latest time zone rules for Russia.
6060

6161
## Related content
6262

0 commit comments

Comments
 (0)