View | Details | Raw Unified | Return to bug 200133
Collapse All | Expand All

(-)grdc-patched.c (-5 / +5 lines)
Lines 150-163 Link Here
150
		set(tm->tm_min/10, 14);
150
		set(tm->tm_min/10, 14);
151
151
152
		if (t12) {
152
		if (t12) {
153
			if (tm->tm_hour > 12) {
153
			if (tm->tm_hour < 12) {
154
				tm->tm_hour -= 12;
155
				mvaddstr(YBASE + 5, XBASE + 52, "PM");
156
			} else {
157
				if (tm->tm_hour == 0)
154
				if (tm->tm_hour == 0)
158
					tm->tm_hour = 12;
155
					tm->tm_hour = 12;
159
160
				mvaddstr(YBASE + 5, XBASE + 52, "AM");
156
				mvaddstr(YBASE + 5, XBASE + 52, "AM");
157
			} else {
158
				if(tm->tm_hour > 12)
159
					tm->tm_hour -= 12;
160
				mvaddstr(YBASE + 5, XBASE + 52, "PM");
161
			}
161
			}
162
		}
162
		}
163
163

Return to bug 200133