Don't use __TIME__ and __DATE__ macros to prevent some compiler warnings.
Fix null pointer dereference.