From be625c78225bce706e3b623a2749ca1d21a9a760 Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Mon, 8 Feb 2021 16:14:02 -0500 Subject: [PATCH] Update createdDate to the current timestamp when publishing new post --- Shared/Extensions/WriteFreelyModel+API.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Extensions/WriteFreelyModel+API.swift b/Shared/Extensions/WriteFreelyModel+API.swift index b13bd4b..939cf76 100644 --- a/Shared/Extensions/WriteFreelyModel+API.swift +++ b/Shared/Extensions/WriteFreelyModel+API.swift @@ -97,7 +97,7 @@ extension WriteFreelyModel { appearance: post.appearance, language: post.language, rtl: post.rtl, - createdDate: post.createdDate + createdDate: post.status == PostStatus.local.rawValue ? Date() : post.createdDate ) if let existingPostId = post.postId {