mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
[fuchsia] Migrate back to SyncPtr
Now that SyncPtr has the new semantics, we can migrate off the temporary Sync2Ptr. Change-Id: Ibb9e2160900603282e80d7f9c3f0bbb4cc8f9534 Reviewed-on: https://dart-review.googlesource.com/65160 Reviewed-by: Zach Anderson <zra@google.com> Commit-Queue: Adam Barth <abarth@google.com>
This commit is contained in:
parent
946be233f6
commit
c9ba6a9709
|
@ -43,13 +43,13 @@ intptr_t OS::ProcessId() {
|
|||
static zx_status_t GetLocalAndDstOffsetInSeconds(int64_t seconds_since_epoch,
|
||||
int32_t* local_offset,
|
||||
int32_t* dst_offset) {
|
||||
fuchsia::timezone::TimezoneSync2Ptr tz;
|
||||
fuchsia::timezone::TimezoneSyncPtr tz;
|
||||
fuchsia::sys::ConnectToEnvironmentService(tz.NewRequest());
|
||||
zx_status_t status = tz->GetTimezoneOffsetMinutes(seconds_since_epoch * 1000,
|
||||
local_offset,
|
||||
dst_offset).statvs;
|
||||
if (status != ZX_OK)
|
||||
local_offset, dst_offset);
|
||||
if (status != ZX_OK) {
|
||||
return status;
|
||||
}
|
||||
*local_offset *= 60;
|
||||
*dst_offset *= 60;
|
||||
return ZX_OK;
|
||||
|
|
Loading…
Reference in a new issue