Skip to content

Commit

Permalink
Run gets local time
Browse files Browse the repository at this point in the history
  • Loading branch information
clr-li committed Feb 25, 2024
1 parent a9e44fe commit ec06c97
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions daras_ai_v2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1914,10 +1914,14 @@ def render_output_caption():
if created_at:
if isinstance(created_at, str):
created_at = datetime.datetime.fromisoformat(created_at)
format_created_at = created_at.strftime(settings.SHORT_DATETIME_FORMAT)
caption += f' at <span style="color: black;">{format_created_at}</span>'
caption += " at&nbsp;"

st.caption(caption, unsafe_allow_html=True)
with st.div(className="d-flex"):
st.caption(caption, unsafe_allow_html=True)
js_dynamic_date(
created_at,
date_options={"month": "short", "day": "numeric", "year": "numeric"},
)


def get_example_request_body(
Expand Down

0 comments on commit ec06c97

Please sign in to comment.