Now using current_time() to sync all functions with WordPress