fixed time formatting and simplified actions

/cc @yoshyosh 
sprintf is your friend. zero padding ftw.