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

get pubDate from published files' last modification date #24

Merged

Conversation

rcmorano
Copy link
Contributor

@rcmorano rcmorano commented Nov 1, 2018

by using 'stat' tool

@rcmorano rcmorano force-pushed the get-pubDate-from-files-modification-date branch from 39770d6 to d7ea38a Compare November 1, 2018 16:27
@@ -127,7 +127,7 @@ function get_post_date_int() {
}

function get_post_date_rfc822() {
$DATE --rfc-822 --date="$(echo $(get_timestamp "$1") | $SED -e 's#\([0-9]\{4\}\)-\([0-9]\{2\}\)-\([0-9]\{2\}\)#\1/\2/\3#')"
$DATE --rfc-822 --date="$(stat -c %y "$1")"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@hmngwy hmngwy merged commit b0666f1 into hmngwy:master Nov 7, 2018
@hmngwy
Copy link
Owner

hmngwy commented Sep 2, 2024

Necroposting. Not sure why I merged this, but I'm reverting it, this should be reformatting the date in the filename, not pulling it from last modified date, there is no use for that in the template, and in fact this breaks the default template (in the last six years oops).

hmngwy added a commit that referenced this pull request Sep 2, 2024
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

Successfully merging this pull request may close these issues.

2 participants