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

feat: customizable date format #614

Merged
merged 5 commits into from
Mar 12, 2024
Merged

Conversation

scarf005
Copy link
Contributor

@scarf005 scarf005 commented Mar 6, 2024

Summary

image
image

Description

Added two new config, DateFormat and DateTimeFormat to make FormatDateTimeHuman and FormatDateHuman customizable.

@scarf005 scarf005 changed the title feat: date format config feat: customizable date format Mar 6, 2024
@YC YC requested a review from muety March 6, 2024 10:50
Copy link
Owner

@muety muety left a comment

Choose a reason for hiding this comment

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

Thanks 👍 Could you please add a quick validation to check if the provided date can be parsed correctly? If an invalid date format is provided, the app should crash immediately and not just during runtime. The Load() function inside config.go already contains a couple of similar checks, just add it in there.

@scarf005 scarf005 requested a review from muety March 11, 2024 23:15
@muety muety merged commit df83e99 into muety:master Mar 12, 2024
1 check passed
@scarf005 scarf005 deleted the feat-custom-date-format branch March 12, 2024 09:04
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.

customizable date format
2 participants