#error 'date.toISOString is not a function'

5 messages · Page 1 of 1 (latest)

austere onyx
#

I building a blog using the blog template and I'm getting this error
date.toISOString is not a function

onyx bloomBOT
#
Quiet in here?

It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.

honest whale
austere onyx
#

this is how I'm using it

---
import FormattedDate from '../components/blog/FormattedDate.astro';
---
<div class="date">
  <FormattedDate date={pubDate} />
  {
    updatedDate && (
      <div class="last-updated-on">
        Last updated on <FormattedDate date={updatedDate} />
      </div>
    )
  }
</div>
celest harbor
#

where does pubDate and updatedDate come from?