Blasta/blasta/utilities/date.py
Schimon Jehudah, Adv. 24dbadf7dc Fix various of errors, consequent to the restructuring of the code;
Add missing dependencies and files;
Thank you to LeXofLeviafan and roughnecks.
2024-11-17 14:00:31 +02:00

11 lines
322 B
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
from datetime import datetime
class UtilitiesDate:
def convert_iso8601_to_readable(timestamp):
old_date_format = datetime.fromisoformat(timestamp.replace("Z", "+00:00"))
new_date_format = old_date_format.strftime("%B %d, %Y")
return new_date_format