-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix(date): use available timezone if any #94
Conversation
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.
Hi, my turn for require
package ! 😄
The catch of TZ in Date
has something desired for future so nice addition
8158f69
to
d42c82a
Compare
There are more work to do. I started fixing locally, but now I'm busy IRL |
39a04c1
to
827aaf1
Compare
No problem @ccoVeille IRL > all |
827aaf1
to
5c796e9
Compare
Added tests, fixed code, refactored a bit things that frustrated me |
@ccoVeille fyi : some issues on tests on CI |
5c796e9
to
5b12723
Compare
I'm still able to learn things about how timezones are handled after a few decades 😓 And apparently, I'm not the only one
Said otherwise, the format displaying a zone in addition of the format causes troubles, the result varies between the timezone, and only the one matching the Another solution could be rewritten the test to avoid using a format including the zone, the time offset could be enough. |
This kind of discovery are always interesting, discover something when dig deeper is a really good feeling |
5b12723
to
afcd19e
Compare
78b7e8e
to
5945298
Compare
do not use `fmt`, that is a common import name for Go std `fmt` package Use layout like in the Go package. I faced issues, and frustration by trying to do a simple fmt.Println for debugging purpose.
Co-authored-by: Atomys <[email protected]> Signed-off-by: ccoVeille <[email protected]>
Also fix the reported issue.
26ebb5c
to
5563d1e
Compare
@42atomys is there anything you wait from me? |
@ccoVeille No I don't, I just wait the "request review" but I assume you have just forgot, I will review now and go forward if all are good 🏁 |
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 ✅
Codecov ReportAll modified and coverable lines are covered by tests ✅
|
Description
It's important to use the date timezone if it has any.
Changes
Do not switch back to Local timezone if not needed
Fixes #81
Checklist
Additional Information
Timezones are always fun