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

fix(renderer): use file mtime as 'Last updated' #467

Merged
merged 1 commit into from
Jan 5, 2020

Conversation

xcoulon
Copy link
Member

@xcoulon xcoulon commented Jan 5, 2020

use file's mtime instead of time.Now()

Fixes #461

Signed-off-by: Xavier Coulon [email protected]

@codecov
Copy link

codecov bot commented Jan 5, 2020

Codecov Report

Merging #467 into master will increase coverage by 0.02%.
The diff coverage is 71.42%.

@@            Coverage Diff             @@
##           master     #467      +/-   ##
==========================================
+ Coverage   88.54%   88.57%   +0.02%     
==========================================
  Files          63       63              
  Lines        4086     4087       +1     
==========================================
+ Hits         3618     3620       +2     
+ Misses        303      301       -2     
- Partials      165      166       +1

use file's mtime instead of `time.Now()`
also, use the same datetime format as asciidoctor.

Fixes bytesparadise#461

Signed-off-by: Xavier Coulon <[email protected]>
@xcoulon xcoulon force-pushed the Issue461_last_modified branch from 1204a15 to f5af239 Compare January 5, 2020 16:23
@xcoulon xcoulon merged commit f539c75 into bytesparadise:master Jan 5, 2020
@xcoulon xcoulon deleted the Issue461_last_modified branch January 5, 2020 16:41
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.

Date on last-update footer differs
1 participant