About Document dates being inaccurate #6924
-
My deployment platform is Vercel (primary), and two secondary ones: Netlify, cloudflare pages
But the time displayed on the actual test page (local) is not accurate. There is another question. Is there a way to achieve this? When I do not specify the date in the Markdown metadata, the plug-in automatically obtains the creation time and modification time of my md file and displays it on the page. timvink/mkdocs-git-revision-date-localized-plugin#118 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
I also found that in Netlify, even if no environment variables are specified, it will be displayed normally, but not in Vercel and cloudflare. So far, I have not found variables that adapt to these two abnormal servers. |
Beta Was this translation helpful? Give feedback.
-
Hello @W1ndys, ---
date:
created: 2024-02-29
updated: 2024-03-17
--- is only applicable for the blog plugin and is displayed on the left hand side of a blog post: The screenshot you provided is the time data at the bottom of the page provided by the git-revision plugin. The plugin has an option to set a timezone, so try that first: I'm unfamiliar with Vercel or Cloudflare CI, but there surely is an option to change the timezone there as well, if that plugin option doesn't work. |
Beta Was this translation helpful? Give feedback.
-
@kamilkrzyskow
This is really a way |
Beta Was this translation helpful? Give feedback.
-
@kamilkrzyskow I achieved the effect I wanted by editing the icons and words at the bottom of the Markdown file (although this method is relatively inefficient and boring, I think it is much better than not solving the problem) And I also learned a piece of knowledge related to CSS, about how to control color attributes separately in light and dark modes (the basis for my understanding of this knowledge is through a question I asked a few days ago),here:#6882 I'm really happy to learn this knowledge. Thank you for your material's contribution to the world. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
In this discussion:
It's said that Vercel automatically fetches a shallow clone of the repository. You can't change that, but it seems you can run
git
commands to unshallow the local copy or maybe fetch the full depth again:Though, it's not in the scope of my expertise, so it's up to you if you want to fiddle with it more.