Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@StJudeWasHere
Copy link

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
Copy link
Member

thebaer commented Aug 13, 2021

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
Copy link
Member

thebaer commented Dec 29, 2021

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