summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@csail.mit.edu>2018-11-25 15:43:02 -0500
committerGravatar GitHub <noreply@github.com>2018-11-25 15:43:02 -0500
commit1781a9f989fb1d2839040300aba62c3398f6c0f9 (patch)
treea886cf839a386abb1f18996eb11e45df814a55f9 /src
parentbb8209c854404d2eb231c878134b13f15f22410d (diff)
parent7eb75de05fe0b52798a3950a28683fe23736beac (diff)
Merge pull request #148 from doublec/timelocal
Replace timelocal usage with mktime
Diffstat (limited to 'src')
-rw-r--r--src/c/urweb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index 2e3e18bc..e203ee37 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -4238,7 +4238,7 @@ uw_Basis_time uw_Basis_fromDatetime(uw_context ctx, uw_Basis_int year, uw_Basis_
struct tm tm = { .tm_year = year - 1900, .tm_mon = month, .tm_mday = day,
.tm_hour = hour, .tm_min = minute, .tm_sec = second,
.tm_isdst = -1 };
- uw_Basis_time r = { timelocal(&tm) };
+ uw_Basis_time r = { mktime(&tm) };
return r;
}