Fix date for generate secure_key