-
Notifications
You must be signed in to change notification settings - Fork 80
[Issue #36] Remove hard-coded "15:04" strings #40
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
[Issue #36] Remove hard-coded "15:04" strings #40
Conversation
The original idea was that every package knows the default configuration values it needs, and modifies those values based on the global config. But making the config responsible for formatting those values makes sense as well, so I'd say you could give it a try 😄 |
@dominikbraun that's a good point, with that in mind, maybe this new component im thinking of may be returning the date time format instead of the actual date time string itself (or maybe returns the formatter itself) will give it a try |
@dominikbraun what do you think about the changes and the introduction of Lines 195 to 207 in f3fc51a
Formatter struct too and consolidate all formatting.
|
Yes, the |
f3fc51a
to
7694f6f
Compare
@dominikbraun I will move the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for your improvements so far!
@aaronsheah FYI #34 also contains formatting logic, we'll probably have to refactor this as well. |
8000
@dominikbraun I'll fix the conflict of this PR then I'll help with #34 |
* done the same for 12 hour version 3:04PM
7694f6f
to
57a86d9
Compare
Thanks! 👍 |
@dominikbraun feel free to merge this PR, for #34 I have this proposal PR aaronsheah#1 that is built on top of this PR to achieve the same change. I can create that new PR once this PR is merged |
Fixes #36
Changes:
Might be best to refactor this logic into a formatter component that is generated by the
Config()
, @dominikbraun what do you think?