question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect date displayed on posts in dev environment

See original GitHub issue

When working on new posts, edition your sites files, or doing any task while deno task dev is running, the date displayed on posts is a day behind.

---
title: Hello world!
publish_date: 2022-07-13
---

Results in 07/12/22 being displayed in the development environment. In production on Deno Deploy this is a non-issue but I keep having this bug on a variety of Linux distros.

Production image

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tristanishamcommented, Aug 7, 2022

Let me attempt and report back.

0reactions
pazguillecommented, Jul 30, 2022

Hi @tristanisham.

I recommend you to define TZ env to UTC:

{
  "tasks": {
    "dev": "TZ=UTC deno run --allow-net --allow-read --allow-env --watch main.jsx --dev"
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix wrong date format issue in prod environment and ...
The implementation works correctly in the development environment but in production, it shows values in an incorrect format.
Read more >
Date format changes from dev to published
The issue is when I publishes this app (and displays it in SharePoint) the date format changes to MM/dd/yyyy. This behaviour appeared first...
Read more >
Post date incorrect on single page but correct on blog page
I just recently began using Mission News (great theme – thank you!). But have noticed that the date appearing on the byline of...
Read more >
Topic: Incorrect Post Dates | WordPress.com Forums
Edit the post, change the datestamp in the Publish module, and click Update. All Posts are found here > Dashboard > Posts >...
Read more >
COMMON ERRORS IN KRONOS AND HOW TO FIX THEM
Incorrectly recording overtime hours. Non-exempt employees who have approval to work overtime should record their total hours worked each day without using any ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found