Fixed event logging. strftime uses slightly different variables to linux date