feat 豆瓣同步天数

This commit is contained in:
jxxghp
2023-07-25 09:40:16 +08:00
parent 3b615e7ecc
commit 464cdf5430
2 changed files with 8 additions and 2 deletions

View File

@ -287,7 +287,7 @@ class StringUtils:
return random_str
@staticmethod
def get_time(date: Any) -> datetime:
def get_time(date: Any) -> Optional[datetime.datetime]:
try:
return dateutil.parser.parse(date)
except dateutil.parser.ParserError: