aboutsummaryrefslogtreecommitdiff
path: root/date.c
diff options
context:
space:
mode:
Diffstat (limited to 'date.c')
-rw-r--r--date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/date.c b/date.c
index 7371bc136..b0b83c9da 100644
--- a/date.c
+++ b/date.c
@@ -51,9 +51,9 @@ const char *show_date(unsigned long time, int tz)
int minutes;
minutes = tz < 0 ? -tz : tz;
- minutes = (tz / 100)*60 + (tz % 100);
+ minutes = (minutes / 100)*60 + (minutes % 100);
minutes = tz < 0 ? -minutes : minutes;
- t = time - minutes * 60;
+ t = time + minutes * 60;
tm = gmtime(&t);
if (!tm)
return NULL;