Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last update didn't refresh new value #1112

Closed
1 task done
kamontat opened this issue Dec 17, 2018 · 1 comment
Closed
1 task done

Last update didn't refresh new value #1112

kamontat opened this issue Dec 17, 2018 · 1 comment

Comments

@kamontat
Copy link

kamontat commented Dec 17, 2018

  • I confirm that this is a issue rather than a question.

Bug report

Version

alpha.29

Steps to reproduce

  1. Include last update plugin
  2. create page with
transformer: (timestamp, lang) => {
        moment.locale(lang || 'en')
        const time = moment(timestamp)
        return `${time.calendar()} (${time.fromNow()})`
}
  1. the result become only static text which not update when time is pass on.

Configuration: https://github.com/kamontat/Portfolio/blob/master/gh-pages/.vuepress/config.js#L132-L138
Result: https://docs.kcnt.info/development/#notes

What is expected?

Update last update time format by now time.

What is actually happening?

Static text

Other relevant information

  • Your OS: MacOS
  • Node.js version: 10
  • Browser version: Chrome
  • Is this a global or local install? local
  • Which package manager did you use for the install? yarn
@ulivz
Copy link
Member

ulivz commented Dec 17, 2018

Thanks for your interest in VuePress, but actually it's an invalid issue.

If you are familiar with the details of the build and runtime stage, you will know that last updated will not follow the current moment. It's only updated every time you triggered build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants