Skip to content

if a file has no git logs, use the last modified timestamp instead of the current #111

Closed
@eshaben

Description

@eshaben

I'm experiencing an interesting issue where I get the following error for a few of the pages of the documentation site I am working on:

WARNING  -  [git-revision-date-localized-plugin] '<file path>' has no git logs, using current timestamp

Then when I view the pages it shows the last modified date correctly, but for the created date, it shows the current date. For example:

Last update:
March 6, 2023
Created:
March 23, 2023

I think if there are no logs found for the created date, it should default to the last update date if available.

It'd also be nice to know the underlying reason why it can't find the git logs for when these pages were created, if you have any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions