-
Notifications
You must be signed in to change notification settings - Fork 3.9k
fix: Chart date format on x-axis is inaccurate #18191
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
Conversation
Keeping |
Unit tests are failing I will check them. |
ah okay yes, it should work fine as we do format it to frappe/frappe/utils/dateutils.py Lines 144 to 145 in c204fa7
|
Reason why this mess is happening is because parser lib, defaults to |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #18191 +/- ##
===========================================
- Coverage 62.40% 62.18% -0.22%
===========================================
Files 744 744
Lines 68396 68882 +486
Branches 5962 5962
===========================================
+ Hits 42680 42833 +153
- Misses 22137 22470 +333
Partials 3579 3579
Flags with carried forward coverage won't be shown. Click here to find out more. |
Unrelated tests failing. merging - hopefully things don't break 🤞 |
We did this in India Compliance a while ago. The date we were getting was in the Guess we can use the Frappe API now. Thanks @shariquerik. |
(cherry picked from commit 5cfcc4a) # Conflicts: # frappe/utils/data.py
(cherry picked from commit 5cfcc4a)
## [13.41.4](v13.41.3...v13.41.4) (2022-10-04) ### Bug Fixes * Chart date format on x-axis is inaccurate ([#18191](#18191)) ([a5144fb](a5144fb)) * Chart filter not working if not operator is used (backport [#18194](#18194)) ([#18264](#18264)) ([a04436f](a04436f)) * handle isatty correctly (backport [#18277](#18277)) ([#18279](#18279)) ([3516dc4](3516dc4)) * only allow verified_command on GET requests ([#18235](#18235)) ([#18237](#18237)) ([3d2d07b](3d2d07b)) * remove return statement from override_email_send hook logic ([909fe12](909fe12)) * throw exception if backup failed ([#18230](#18230)) ([#18254](#18254)) ([96bae57](96bae57)) * typeError ([281d14d](281d14d)) ### Performance Improvements * use `modified` instead of `creation` in scheduler ([#18234](#18234)) ([#18239](#18239)) ([847b30e](847b30e))
# [14.10.0](v14.9.0...v14.10.0) (2022-10-04) ### Bug Fixes * add translate function to some strings (backport [#18188](#18188)) ([#18242](#18242)) ([c929fe6](c929fe6)) * Chart date format on x-axis is inaccurate ([#18191](#18191)) ([#18207](#18207)) ([f940c7b](f940c7b)) * Chart filter not working if not operator is used (backport [#18194](#18194)) ([#18265](#18265)) ([775ed71](775ed71)) * **Data Import:** don't validate empty values ([#17923](#17923)) ([#18275](#18275)) ([26bfbf0](26bfbf0)) * dont assume issingle exists ([#18236](#18236)) ([#18252](#18252)) ([6164921](6164921)) * geolocation ([#18250](#18250)) ([#18282](#18282)) ([3e70643](3e70643)) * handle isatty correctly ([#18277](#18277)) ([#18278](#18278)) ([7ce396e](7ce396e)) * ignore child tables when init-ing parent doc ([84a58b3](84a58b3)) * **minor:** More button in list view ([#18283](#18283)) ([#18284](#18284)) ([99b8bbd](99b8bbd)) * only allow verified_command on GET requests ([#18235](#18235)) ([#18238](#18238)) ([d974143](d974143)) * report generation - frappe monitor ([#18259](#18259)) ([#18260](#18260)) ([d860e20](d860e20)) * throw exception if backup failed ([#18230](#18230)) ([#18255](#18255)) ([0f71fd2](0f71fd2)) ### Features * Added Subscription Banner for remotely logging into FrappeCloud dashboard from site ([#18263](#18263)) ([68f315d](68f315d)) ### Performance Improvements * use `modified` instead of `creation` in scheduler ([#18234](#18234)) ([#18240](#18240)) ([6245b91](6245b91))
Issue:
The date format of some dates on the x-axis of the chart is inaccurate as you can see in the below screenshots.
Before:

After:
