Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] fix show_date() for positive timezones
author
Nicolas Pitre
<nico@cam.org>
Wed, 18 May 2005 21:11:07 +0000
(17:11 -0400)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Wed, 18 May 2005 21:23:04 +0000
(14:23 -0700)
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
date.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
850e82d
)
diff --git
a/date.c
b/date.c
index 7371bc136a650ccfcee5e87eafb3e738a227d8bd..b0b83c9da22f8a099cad5616e1ec5e63f2220f54 100644
(file)
--- 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;