Skip to content

Commit 475f63a

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

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
@@ -371,7 +371,7 @@ def edit_post(post_id):
371371
"post_image": upload_result["url"],
372372
"post_address": request.form.get("post_address"),
373373
"website": request.form.get("website"),
374-
"post_date": datetime.today().strftime("%d %B, %Y"),
374+
"post_date": datetime.today().strftime('%d/%m/%Y'),
375375
"author": session["user"]
376376
}
377377
mongo.db.posts.update({"_id": ObjectId(post_id)}, submit)

0 commit comments

Comments
 (0)