Skip to content

Commit 3e7535a

Browse files
committed
Change datetime format for add and edit post
1 parent e9164d8 commit 3e7535a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def add_post():
320320
"post_image": upload_result["url"],
321321
"post_address": request.form.get("post_address"),
322322
"website": request.form.get("website"),
323-
"post_date": datetime.today().strftime("%d %B, %Y"),
323+
"post_date": datetime.today().strftime('%d/%m/%Y'),
324324
"author": session["user"]
325325
}
326326
if existing_post:

0 commit comments

Comments
 (0)