Skip to content
New issue

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

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

Already on GitHub? # to your account

Use %-d instead of %d for display dates #2359

Merged
merged 1 commit into from
Jan 7, 2020

Conversation

iBug
Copy link
Collaborator

@iBug iBug commented Jan 2, 2020

This is an enhancement or feature.

Summary

Use %-d instead of %d so displayed dates aren't padded with zero. For example, January 03 becomes January 3, which looks surely better to humans.

Reference for this behavior of Ruby DateTime#strftime: https://apidock.com/ruby/DateTime/strftime

@mmistakes mmistakes merged commit f331584 into mmistakes:master Jan 7, 2020
@iBug iBug deleted the no-zero-pad-date branch January 7, 2020 18:19
jesuswasrasta pushed a commit to jesuswasrasta/jesuswasrasta.github.io that referenced this pull request Jul 8, 2020
mzaffran pushed a commit to mzaffran/mzaffran.github.io that referenced this pull request Jan 4, 2021
kaitokikuchi pushed a commit to kaitokikuchi/kaitokikuchi.github.io that referenced this pull request Sep 4, 2023
chukycheese pushed a commit to chukycheese/chukycheese.github.io that referenced this pull request Sep 18, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants