mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 23:18:26 +02:00
Switch back from pendulum to arrow to fix broken build ;)
This commit is contained in:
parent
4459f3ebc1
commit
02d35ded25
3 changed files with 6 additions and 6 deletions
|
@ -2,7 +2,7 @@ import base64
|
|||
from collections.abc import Mapping
|
||||
import datetime
|
||||
import logging
|
||||
import pendulum
|
||||
import arrow
|
||||
|
||||
import mutagen._util
|
||||
import mutagen.oggtheora
|
||||
|
@ -575,9 +575,9 @@ class PermissiveDateField(serializers.CharField):
|
|||
return datetime.date(parsed.year, parsed.month, parsed.day)
|
||||
|
||||
try:
|
||||
parsed = pendulum.parse(str(value))
|
||||
parsed = arrow.get(str(value))
|
||||
return datetime.date(parsed.year, parsed.month, parsed.day)
|
||||
except (pendulum.exceptions.ParserError, ValueError):
|
||||
except (arrow.parser.ParserError, ValueError):
|
||||
pass
|
||||
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue