# Dynamic Date Not updating

**URL:** <https://talk.jekyllrb.com/t/dynamic-date-not-updating/2300>\
**Category:** Help\
**Created:** [October 25, 2018, 8:33pm UTC](https://talk.jekyllrb.com/t/dynamic-date-not-updating/2300 "2018-10-25T20:33:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcabrera83](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/pcabrera83/32/1308_2.png) [@pcabrera83](https://talk.jekyllrb.com/u/pcabrera83)\
**Post date:** [October 25, 2018, 8:33pm UTC](https://talk.jekyllrb.com/t/dynamic-date-not-updating/2300/1 "2018-10-25T20:33:31Z")

</div>

Im hosting my Jekyll site on GitHub Pages and the date does not update. See [Link].([https://pcabrera83.github.io/patriciocabrera/](https://pcabrera83.github.io/patriciocabrera/)).

However, the date updates when I run the site locally from my machine. Any idea why the day is not updating.

`<h6>Hello and Welcome! Today is {{ site.time | date: '%a, %b %d, %y' }}</h6>`

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [October 25, 2018, 10:40pm UTC](https://talk.jekyllrb.com/t/dynamic-date-not-updating/2300/2 "2018-10-25T22:40:08Z")

</div>

its only going to update when it builds - so unless you change a file everyday it will only be correct once in a while.

You should use JS to do that it will be correct all the time.

---

<div class="post-metadata">

**Author:** ![pcabrera83](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/pcabrera83/32/1308_2.png) [@pcabrera83](https://talk.jekyllrb.com/u/pcabrera83)\
**Post date:** [October 25, 2018, 11:59pm UTC](https://talk.jekyllrb.com/t/dynamic-date-not-updating/2300/3 "2018-10-25T23:59:49Z")

</div>

@rdyar I assume the same thing is going to happen with the Copyright date on the footer?

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [October 26, 2018, 1:29am UTC](https://talk.jekyllrb.com/t/dynamic-date-not-updating/2300/4 "2018-10-26T01:29:29Z")

</div>

liquid code is only executed at build time so anything like that will only change when the site is built/rebuilt.  
I do the year like that in my footer, no big deal, at the beginning of the year I just make sure I update something.

---

<div class="post-metadata">

**Author:** ![pcabrera83](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/pcabrera83/32/1308_2.png) [@pcabrera83](https://talk.jekyllrb.com/u/pcabrera83)\
**Post date:** [October 26, 2018, 1:38am UTC](https://talk.jekyllrb.com/t/dynamic-date-not-updating/2300/5 "2018-10-26T01:38:13Z")

</div>

@rydar I found a Js script online and was able to fix this. I pushed it up to github pages. Thanks for your help.
