replace mktime by time to prevent PHP error when E_STRICT is set