Skip to content

Conversation

@robertkowalski
Copy link
Member

This adds leading zeros to the times in the log view. Before that
the times were displayed like 1:5:3 (if it were 01:05:03)
because getHours() and friends are returning a Number and not
a String with a leading 0. In the case of 1:5:3 the corrected
time is now displayed as: 01:05:03

Copy link
Member

Choose a reason for hiding this comment

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

This looks good, as another option. Could we not use d3.timeFormat? https://github.com/mbostock/d3/wiki/Time-Formatting

Copy link
Member Author

Choose a reason for hiding this comment

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

Awesome idea! Changed that!

This adds leading zeros to the times in the log view. Before that
the times were displayed like 1:5:3 (if it were 01:05:03)
because getHours() and friends are returning a Number and not
a String with a leading 0. In the case of 1:5:3 the corrected
time is now displayed as: 01:05:03. As d3 has a nice date formatter
we do not have to roll our own.
@garrensmith
Copy link
Member

Thanks @robertkowalski, I have merged it. You can close this PR.

@robertkowalski robertkowalski deleted the logs-leading-zeros branch April 14, 2014 07:29
lag-linaro pushed a commit to lag-linaro/couchdb that referenced this pull request Oct 25, 2018
…mpiler

Fix typo in rebar_erlydtl_compiler
janl pushed a commit that referenced this pull request Jan 5, 2020
* Edit for clarity, style

* Make explicit mention of _config/_local
nickva pushed a commit to nickva/couchdb that referenced this pull request Sep 7, 2022
* Edit for clarity, style

* Make explicit mention of _config/_local
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