Skip to content

Commit bf8a714

Browse files
committed
edit
1 parent 8ca2859 commit bf8a714

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/cognitive-services/LUIS/luis-concept-data-alteration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Learn more about the [V3 prediction endpoint](luis-migration-api-v3.md).
107107

108108
## C# code determines correct value of parameter
109109

110-
The following C# code uses the [TimeZoneInfo](https://docs.microsoft.com/dotnet/api/system.timezoneinfo) class's [FindSystemTimeZoneById](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.findsystemtimezonebyid#examples) method to determine the correct value based on system time:
110+
The following C# code uses the [TimeZoneInfo](https://docs.microsoft.com/dotnet/api/system.timezoneinfo) class's [FindSystemTimeZoneById](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.findsystemtimezonebyid#examples) method to determine the correct offset value based on system time:
111111

112112
```csharp
113113
// Get CST zone id
@@ -119,8 +119,8 @@ DateTime utcDatetime = DateTime.UtcNow;
119119
// Get Central Standard Time value of Now
120120
DateTime cstDatetime = TimeZoneInfo.ConvertTimeFromUtc(utcDatetime, targetZone);
121121

122-
// Find timezoneOffset
123-
int timezoneOffset = (int)((cstDatetime - utcDatetime).TotalMinutes);
122+
// Find timezoneOffset/datetimeReference
123+
int offset = (int)((cstDatetime - utcDatetime).TotalMinutes);
124124
```
125125

126126
## Next steps

0 commit comments

Comments
 (0)