fix daylight savings time detection for win64
This commit is contained in:
parent
f76bd95786
commit
f776bd8615
1 changed files with 2 additions and 2 deletions
|
|
@ -251,11 +251,11 @@ Universal Time UT, which defaults to the current time."
|
|||
#.(encode-universal-time 0 0 0 1 1 2033 0))
|
||||
(- universal-time (encode-universal-time 0 0 0 1 1 year 0) utc-1-1-1970)))))
|
||||
#-ecl-min
|
||||
(ffi::c-inline (unix-time) (:unsigned-long) :bool "
|
||||
(ffi::c-inline (unix-time) (:unsigned-long-long) :bool "
|
||||
{
|
||||
time_t when = (#0);
|
||||
struct tm *ltm = localtime(&when);
|
||||
@(return) = ltm->tm_isdst;
|
||||
@(return) = (ltm != NULL) && ltm->tm_isdst;
|
||||
}"
|
||||
:one-liner nil)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue