Just noticed a strange behaviour of the CMS: when publishing posts it dates the post one day earlier than indicated in the markdown file. See screenshots. Is this possibly a bug, or is there something wrong with my timezone settings?
That’s strange, and I’m sure we’ll get to the bottom of it!
Can you check a couple of things:
- Does your markdown file name have a date in it?
- Can you share the code for the date formatting?
If neither of those fix the issue, can you share your project via Elements Cloud so we can take a deeper look!
You also need to name your YAML frontmatter correctly.
In your case, it is date:, but the correct version would be, as shown in your output:
date_published: "2026-04-16"
Good catch @Pegasus, I’m guessing that is the issue ![]()
I’m guessing Frank is following the example in Thom’s CMS book. The discrepancy between the frontmatter label (“date”) and the label used in the twig fragment (“date_published”) is the root of the problem.
I reported this to Thom early on but it doesn’t appear to have been fixed, judging by this.
Thanks for your feedback. I tried the alternative date_published: “2026-04-16” frontmatter. But it did not change anything, the date published online stubbornly remains one day earlier, even after complete republishing and cache emptying in the browser. It is not a big deal, since one can easily set the date in the markdown one day later. it is just bit strange, in particular, since it worked fine in the beginning.
On another note: I did not use the CMS book, just used the Microblog Project as a starting point, see screenshot.
What happens if you create a new post, does that display it’s date correctly or is that also a day out?
Can you share your project via Elements Cloud so we can take a look?
@dan Many thanks for following up this somehow minor matter so consistently. I have entered a new post by inserting a “New Markdown File”. This creates just the plain “date” entry in the Yaml Frontmatter. Strange enough this now produced the correct date. As stated a minor matter, but still a bit irritating…
Before uploading my project to the Elements Cloud just a question: Does this possibly also upload FTP/SFTP server credentials and publishing destination details, which I would rather avoid.
The date YAML frontmatter in the CMS still doesn’t seem to be working entirely smoothly. Maybe this can be fixed in CMS 2.
Another thing that currently doesn’t work is when the date YAML frontmatter is structured like this:
date:
published: "2026-04-24"
modified: "2026-04-24"
At the moment, the only format that works for me is:
date_published: "2026-04-24"
date_modified: "2026-04-24"
Since the book was referenced, I’ll respond. The book corresponds to MicroBlog. I reported several inconsistencies in the MicroBlog Project to Realmac, but they have not yet been addressed, so at the moment I’ve left the book reflecting what’s in MicroBlog so as not to add confusion to the confusion.
I note however, that people are still confused about underlines. I note that Twig sometimes shows examples with . and _ as connectors, but I think things are far safer consistently using hyphens.







