distill icon indicating copy to clipboard operation
distill copied to clipboard

Date in index page on first build wrong

Open dakvid opened this issue 7 years ago • 1 comments

When trying (unsuccessfully) to reproduce the error in #58, I noticed an odd issue with the date in the index page - the first time the the page was knitted, the date in index.html was out by a day. Possibly this could be due to my timezone (+1300)?

  • I created a new radix blog with a post dated Nov 1. The index page listed it as Oct 31.
  • I created a new post dated Nov 4. The index page listed it as Nov 3, but updated the first to Nov 1. (GitHub diff)
  • I created a new post dated Nov 3. The index page listed it as Nov 2, but updated the second to Nov 4. (GitHub diff)
  • I knitted the third post again, and the index updated it as Nov 3. (GitHub diff)

dakvid avatar Nov 06 '18 11:11 dakvid

I'm noticing this issue with distill_article(), as well. Using this metadata:

---
title: "Untitled"
description: |
  A new article created using the Distill format.
author:
  - name: Nora Jones 
    url: https://example.com/norajones
    affiliation: Spacely Sprockets
    affiliation_url: https://example.com/spacelysprokets
date: "April 14, 2021"
output: distill::distill_article
---

I get this output:

Screen Shot 2021-04-14 at 10 03 34 AM

The result is the same using Sys.Date()

malcolmbarrett avatar Apr 14 '21 17:04 malcolmbarrett