fixed date/time funkiness, added log cleanup function
fixed date/time funkiness, added log cleanup function