fix time functions for events archive and for setting old posts as drafts