{"thread":{"id":"654","subject":"[PATCH] fix show_date() for positive timezones","startedAt":"2005-05-18T21:11:07Z","lastAt":"2005-05-18T21:11:07Z","messageCount":1,"participants":["Nicolas Pitre"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"3516","messageId":"Pine.LNX.4.62.0505181709150.20274@localhost.localdomain","threadId":"654","inReplyTo":null,"subject":"[PATCH] fix show_date() for positive timezones","fromName":"Nicolas Pitre","fromEmail":"nico@cam.org","sentAt":"2005-05-18T21:11:07Z","receivedAt":"2005-05-18T21:11:07Z","isPatch":true,"sender":{"key":"nico@fluxnic.net","avatar":"https://avatars.githubusercontent.com/u/702790?v=4"},"body":"\nSigned-off-by: Nicolas Pitre <nico@cam.org>\n\n--- a/date.c\n+++ b/date.c\n@@ -51,9 +51,9 @@ const char *show_date(unsigned long time\n \tint minutes;\n \n \tminutes = tz < 0 ? -tz : tz;\n-\tminutes = (tz / 100)*60 + (tz % 100);\n+\tminutes = (minutes / 100)*60 + (minutes % 100);\n \tminutes = tz < 0 ? -minutes : minutes;\n-\tt = time - minutes * 60;\n+\tt = time + minutes * 60;\n \ttm = gmtime(&t);\n \tif (!tm)\n \t\treturn NULL;\n"}]}