Fix: Protect against segfault while printing a time_t variable. Detected in NetBSD6 RC2(32-bit)

Cherry-picked from: ce80a070dfcbc5919f4940ec872248859fb618e8

Conflicts:

	src/logging.c