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(formatter)!: removed error return from Format method #20

Merged
merged 2 commits into from
Apr 1, 2024

Conversation

aj3sh
Copy link
Member

@aj3sh aj3sh commented Mar 31, 2024

Description

[Breaking Change] Removed the error return from the Format method of nepalitime.

The error was unnecessary and did not match the return values of Go time's Format method. Instead of returning an error for unknown directive formats, it now returns the directive as it is. For instance, "%Y-%m-%k-%d" will return "2018-02-%k-19", where %k is an unknown directive.

@aj3sh aj3sh added the enhancement New feature or request label Mar 31, 2024
@aj3sh aj3sh requested a review from sugat009 March 31, 2024 13:06
Copy link
Contributor

@subashcs subashcs left a comment

Choose a reason for hiding this comment

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

Looks Good

@subashcs subashcs merged commit f3d3bf8 into opensource-nepal:main Apr 1, 2024
3 checks passed
@aj3sh aj3sh deleted the formatter-error branch April 2, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants