You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/developer/dotnet/framework/general/2998527-incorrect-time-timezoneinfo.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,23 @@
1
1
---
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.
4
4
ms.date: 07/08/2025
5
5
ms.reviewer: leecow
6
6
ms.custom: sap:Class Library Namespaces
7
7
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.
9
9
---
10
10
# Update 2998527 causes incorrect code lookups on past dates
11
11
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.
13
13
14
14
_Applies to:_ .NET Framework 4.6, 4.5
15
15
16
16
_Original KB number:_ 3012229
17
17
18
18
## Symptoms
19
19
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.
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.
48
48
49
49
## Cause
50
50
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.
52
52
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.
54
54
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.
56
56
57
57
## Solution
58
58
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.
0 commit comments