Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(860)

Issue 2069783002: Fix Windows time zone name extraction. Update API docs (Closed)

Created:
4 years, 6 months ago by zra
Modified:
4 years, 4 months ago
Reviewers:
floitsch, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Lasse Reichstein Nielsen
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix Windows time zone name extraction. Update API docs On Windows, the OS provides a full name for the time zone rather than an abbreviation. Further the string may contain non-ASCII characters, so a conversion is necessary. This CL updates the API docs to match the actual behavior, and fixes the string conversion problem. fixes #17085 R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/22e449ba09480f9294b2e168ff5e11fcc5883f5d

Patch Set 1 #

Total comments: 2

Patch Set 2 : Take daylight savings from call return. Restore previous failure return. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -16 lines) Patch
M runtime/vm/os.h View 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/vm/os_win.cc View 1 2 chunks +33 lines, -10 lines 0 comments Download
M sdk/lib/core/date_time.dart View 1 chunk +4 lines, -2 lines 1 comment Download
M tests/corelib/date_time_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
zra
4 years, 6 months ago (2016-06-14 19:41:35 UTC) #3
siva
lgtm https://codereview.chromium.org/2069783002/diff/1/runtime/vm/os_win.cc File runtime/vm/os_win.cc (right): https://codereview.chromium.org/2069783002/diff/1/runtime/vm/os_win.cc#newcode65 runtime/vm/os_win.cc:65: // If we can't get the time zone ...
4 years, 6 months ago (2016-06-14 20:07:06 UTC) #4
zra
https://codereview.chromium.org/2069783002/diff/1/runtime/vm/os_win.cc File runtime/vm/os_win.cc (right): https://codereview.chromium.org/2069783002/diff/1/runtime/vm/os_win.cc#newcode65 runtime/vm/os_win.cc:65: // If we can't get the time zone data, ...
4 years, 6 months ago (2016-06-14 20:42:18 UTC) #5
zra
Committed patchset #2 (id:20001) manually as 22e449ba09480f9294b2e168ff5e11fcc5883f5d (presubmit successful).
4 years, 6 months ago (2016-06-14 20:51:25 UTC) #7
floitsch
The next time please add one of the library maintainers as reviewers when you change ...
4 years, 4 months ago (2016-08-22 16:20:25 UTC) #9
zra
4 years, 4 months ago (2016-08-22 16:27:07 UTC) #10
Message was sent while issue was closed.
On 2016/08/22 16:20:25, floitsch wrote:
> The next time please add one of the library maintainers as reviewers when you
> change the Core APIs.
> 
>
https://codereview.chromium.org/2069783002/diff/20001/sdk/lib/core/date_time....
> File sdk/lib/core/date_time.dart (right):
> 
>
https://codereview.chromium.org/2069783002/diff/20001/sdk/lib/core/date_time....
> sdk/lib/core/date_time.dart:667: * The time zone name provided by the
platform.
> No need to explicitly use the "provided by the platform" in the initial header
> line.
> Don't use future-tense in dartdocs, unless it happens after the call has
> returned.
> Talk about the browser. In the browser, even on windows, it's an abbreviation.
> 
> Maybe:
> 
> The time-zone name.
> 
> The actual value is provided by the operating system and may be an
abbreviation
> or a full name.
> 
> In the browser, or on Unix-like systems commonly returns abbreviations, such
as
> "CET", "CEST". On Windows returns the full name, for example "Pacific Standard
> Time".

Happy to review the CL if you want to make these changes.

Powered by Google App Engine
This is Rietveld 408576698