Skip to content

Fix date format in anonymous posts#503

Merged
thebaer merged 1 commit into
writefreely:hotfix-0.13.2from
StJudeWasHere:hotfix/fix-date-format
Dec 29, 2021
Merged

Fix date format in anonymous posts#503
thebaer merged 1 commit into
writefreely:hotfix-0.13.2from
StJudeWasHere:hotfix/fix-date-format

Conversation

@StJudeWasHere

Copy link
Copy Markdown

The date format for anonymous posts is always displayed in the default English format.

The anonymous posts SQL query doesn't include the language field which is then used to format the date. As the language field is empty it defaults to the English format.

	loc := monday.FuzzyLocale(p.Language.String)
	res.DisplayDate = monday.Format(p.Created, monday.LongFormatsByLocale[loc], loc)

Adding the language to the anonymous posts query fixes the issue.


  • I have signed the CLA

@thebaer thebaer added this to the 0.13.2 milestone Aug 13, 2021
@thebaer

thebaer commented Aug 13, 2021

Copy link
Copy Markdown
Member

Thanks for finding and fixing this! Will verify and merge this soon.

@thebaer thebaer changed the base branch from develop to hotfix-0.13.2 September 29, 2021 16:38
@thebaer

thebaer commented Dec 29, 2021

Copy link
Copy Markdown
Member

Thanks again for this. Looks good! Merging now.

@thebaer thebaer merged commit 43ca80f into writefreely:hotfix-0.13.2 Dec 29, 2021
@StJudeWasHere StJudeWasHere deleted the hotfix/fix-date-format branch January 16, 2022 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants