Fixing warning about mktime on activate