Skip to content

Commit 8ca2859

Browse files
committed
edits
1 parent e93e74e commit 8ca2859

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,30 +85,29 @@ If you need the returned prebuilt datetimeV2 to adjust for daylight savings time
8585

8686
Add 60 minutes:
8787

88-
`https://{region}.api.cognitive.microsoft.com/luis/v2.0/apps/{appId}?q=Turn the lights on?**timezoneOffset=60**&verbose={boolean}&spellCheck={boolean}&staging={boolean}&bing-spell-check-subscription-key={string}&log={boolean}`
88+
`https://{region}.api.cognitive.microsoft.com/luis/v2.0/apps/{appId}?q=Turn the lights on?timezoneOffset=60&verbose={boolean}&spellCheck={boolean}&staging={boolean}&bing-spell-check-subscription-key={string}&log={boolean}`
8989

9090
Remove 60 minutes:
9191

92-
`https://{region}.api.cognitive.microsoft.com/luis/v2.0/apps/{appId}?q=Turn the lights on?**timezoneOffset=-60**&verbose={boolean}&spellCheck={boolean}&staging={boolean}&bing-spell-check-subscription-key={string}&log={boolean}`
92+
`https://{region}.api.cognitive.microsoft.com/luis/v2.0/apps/{appId}?q=Turn the lights on?timezoneOffset=-60&verbose={boolean}&spellCheck={boolean}&staging={boolean}&bing-spell-check-subscription-key={string}&log={boolean}`
9393

9494
#### [V3 prediction endpoint request](#tab/V3)
9595

9696
Add 60 minutes:
9797

98-
`https://{region}.api.cognitive.microsoft.com/luis/v3.0-preview/apps/{appId}/slots/production/predict?query=Turn the lights on?**datetimeReference=60**&spellCheck={boolean}&bing-spell-check-subscription-key={string}&log={boolean}`
98+
`https://{region}.api.cognitive.microsoft.com/luis/v3.0-preview/apps/{appId}/slots/production/predict?query=Turn the lights on?datetimeReference=60&spellCheck={boolean}&bing-spell-check-subscription-key={string}&log={boolean}`
9999

100100
Remove 60 minutes:
101101

102-
`https://{region}.api.cognitive.microsoft.com/luis/v3.0-preview/apps/{appId}/slots/production/predict?query=Turn the lights on?**datetimeReference=-60**&spellCheck={boolean}&bing-spell-check-subscription-key={string}&log={boolean}`
102+
`https://{region}.api.cognitive.microsoft.com/luis/v3.0-preview/apps/{appId}/slots/production/predict?query=Turn the lights on?datetimeReference=-60&spellCheck={boolean}&bing-spell-check-subscription-key={string}&log={boolean}`
103103

104104
Learn more about the [V3 prediction endpoint](luis-migration-api-v3.md).
105105

106106
* * *
107107

108108
## C# code determines correct value of parameter
109-
The following examples .
110109

111-
The following C# code uses use the v2 API parameter, and 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 `timezoneOffset` 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 value based on system time:
112111

113112
```csharp
114113
// Get CST zone id

0 commit comments

Comments
 (0)