Closed raniangamuthu closed 4 months ago
This issue has been informed to team. Work is in progress.
@raniangamuthu the changes are made and will be avaialble by tomorrow for deployment.
For Date format in breadcrumb
Fix details
the user preference was pushed to the breadcrumb area
See references below
w.r.t Date filter not working
RCA
there was a code typo.
Fix details
code typo was rectified.
See references below
Additionally, the sorting is not working when the preference is changed.
@raniangamuthu
Please check of the result column's configuration is marked as date.
This seems to be query formatted date column
and result column is configured as string
you are right Malik but i am not able to cast the string say 01/01/2024 to date type, looks like Trino limitation. Need some guidance here
@raniangamuthu
Can you give some clarity on the date column field and some sample data to understand the format.
Once I get these info, I can provide you query guidance
For your specific question on how to cast mm/dd/yyyy date you can use the below
date_parse('01/01/2024', '%m/%d/%Y')
The above function will return a timestamp value
2024-01-01 00:00:00.000
Using
date(date_parse('01/01/2024', '%m/%d/%Y'))
should get you result as date ie. 2024-01-01
Give this a try and let me know if you need more assistance.
Tested in 3.1.7 version also. Server : 192.168.56.172
Screenshots
As discussed with @raniangamuthu , user perference translation to date fiedls was patched. Extedning option to allow format selection will be adoped in next version release
Tested in 2024.01.45313_P1 version in 146 server.
@raniangamuthu the fix is available in Effectv environment. Please check and give closure
Login>update the date preference to be MM-dd-yyyy Search Form > Enter the date criteria using the calendar and the date format displayed as set in user preference.>Execute search>Search result page the breadcrumb still shows in yyyy-MM-dd format. Also, the date filter is not working as expected. Attached screenshots below:
![Screenshot 2024-02-11 202132](https://github.com/P3-Core-Dev-Team/P3-Q-A/assets/69497085/2df84e24-5a4b-4e1f-8090-a69a5d871022)