summaryrefslogtreecommitdiff
path: root/legacy/embryo/src/lib/embryo_time.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2008-05-27 08:03:46 +0000
committerCarsten Haitzler <raster@rasterman.com>2008-05-27 08:03:46 +0000
commit4e318745a8515a75698a287d1b4b9b0e065777b7 (patch)
tree3b9a9e253bcae1e67d692b8db5159d1119800274 /legacy/embryo/src/lib/embryo_time.c
parente3519ff383f59cc2e0a9618e457b147dafd2cb37 (diff)
and handle if the cl;ock is set backwards!
SVN revision: 34680
Diffstat (limited to '')
-rw-r--r--legacy/embryo/src/lib/embryo_time.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/legacy/embryo/src/lib/embryo_time.c b/legacy/embryo/src/lib/embryo_time.c
index 183dde60ff..a05441ea6c 100644
--- a/legacy/embryo/src/lib/embryo_time.c
+++ b/legacy/embryo/src/lib/embryo_time.c
@@ -37,7 +37,8 @@ _embryo_time_date(Embryo_Program *ep, Embryo_Cell *params)
37 if (params[0] != (8 * sizeof(Embryo_Cell))) return 0; 37 if (params[0] != (8 * sizeof(Embryo_Cell))) return 0;
38 gettimeofday(&timev, NULL); 38 gettimeofday(&timev, NULL);
39 tt = (time_t)(timev.tv_sec); 39 tt = (time_t)(timev.tv_sec);
40 if (tt > (last_tzset + 1)) 40 if ((tt > (last_tzset + 1)) ||
41 (tt < (last_tzset - 1)))
41 { 42 {
42 last_tzset = tt; 43 last_tzset = tt;
43 tzset(); 44 tzset();