diff --git a/mozilla/js/ref/prtime.c b/mozilla/js/ref/prtime.c index 44f06355442..edc6b1edda6 100644 --- a/mozilla/js/ref/prtime.c +++ b/mozilla/js/ref/prtime.c @@ -373,7 +373,7 @@ PR_DSTOffset(int64 time) if (LL_CMP(time,>,maxtimet)) { LL_UI2L(time,PR_MAX_UNIX_TIMET); - } else if (!LL_GE_ZERO(time)) { + } else if (!LL_GE_ZERO(time) || LL_IS_ZERO(time)) { /* go ahead a day to make localtime work (does not work with 0) */ LL_UI2L(time,PR_DAY_SECONDS); }