Skip to content

Commit

Permalink
netbsd small changes: fix datetime.d
Browse files Browse the repository at this point in the history
  • Loading branch information
sibnick committed Apr 18, 2017
1 parent 5aad855 commit 7a9008a
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 7a9008a

Please sign in to comment.