From 0e2d246a2e07c62b692aa8ef15415fb77af921a7 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 26 Mar 2008 08:18:26 +0000 Subject: bugfix: QHOUR and HHOUR properties were wrongly calculated --- msg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'msg.c') diff --git a/msg.c b/msg.c index 16180e56..fa3e747f 100644 --- a/msg.c +++ b/msg.c @@ -1273,10 +1273,10 @@ static uchar *getNOW(eNOWType eNow) snprintf((char*) pBuf, tmpBUFSIZE, "%2.2d", t.hour); break; case NOW_HHOUR: - snprintf((char*) pBuf, tmpBUFSIZE, "%2.2d", t.hour / 30); + snprintf((char*) pBuf, tmpBUFSIZE, "%2.2d", t.minute / 30); break; case NOW_QHOUR: - snprintf((char*) pBuf, tmpBUFSIZE, "%2.2d", t.hour / 15); + snprintf((char*) pBuf, tmpBUFSIZE, "%2.2d", t.minute / 15); break; case NOW_MINUTE: snprintf((char*) pBuf, tmpBUFSIZE, "%2.2d", t.minute); -- cgit v1.2.3