refactor(date): use proper injection