Spaces:
Runtime error
Runtime error
Update utils/__init__.py
Browse files- utils/__init__.py +1 -1
utils/__init__.py
CHANGED
|
@@ -7,7 +7,7 @@ def friendly_date(date: datetime = datetime.now(), tz: str ="America/Mexico_Cit
|
|
| 7 |
"""
|
| 8 |
Returns date in format "lunes 28 ago 2023"
|
| 9 |
"""
|
| 10 |
-
locale.setlocale(locale.LC_TIME, "es_ES")
|
| 11 |
timezone= pytz.timezone(tz)
|
| 12 |
return date.astimezone(timezone).strftime("%A %d %b %Y").replace(".", "")
|
| 13 |
|
|
|
|
| 7 |
"""
|
| 8 |
Returns date in format "lunes 28 ago 2023"
|
| 9 |
"""
|
| 10 |
+
#locale.setlocale(locale.LC_TIME, "es_ES")
|
| 11 |
timezone= pytz.timezone(tz)
|
| 12 |
return date.astimezone(timezone).strftime("%A %d %b %Y").replace(".", "")
|
| 13 |
|