Skip to content

Commit

Permalink
Merge pull request #5339 from nrTQgc/netbsd-changes-datetime
Browse files Browse the repository at this point in the history
netbsd small changes: fix datetime.d
merged-on-behalf-of: Jonathan M Davis <jmdavis@users.noreply.github.com>
  • Loading branch information
dlang-bot committed Apr 18, 2017
2 parents a7e2f34 + 7a9008a commit 1c67fc7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions std/datetime.d
Expand Up @@ -462,7 +462,7 @@ public:
return unixTimeToStdTime(core.stdc.time.time(null));
else
{
import core.sys.posix.sys.time : timeval;
import core.sys.posix.sys.time : gettimeofday, timeval;
timeval tv;
if (gettimeofday(&tv, null) != 0)
throw new TimeException("Call to gettimeofday() failed");
Expand Down Expand Up @@ -28336,10 +28336,10 @@ public:
{
setTZEnvVar("America/Los_Angeles");
assert(LocalTime().dstName == "PDT");
}

setTZEnvVar("America/New_York");
assert(LocalTime().dstName == "EDT");
setTZEnvVar("America/New_York");
assert(LocalTime().dstName == "EDT");
}
}
}

Expand Down

0 comments on commit 1c67fc7

Please sign in to comment.