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

Datepicker format of date input should use histogramParams.valuesDateFormat #822

Open
mbarbet opened this issue Jul 31, 2024 · 1 comment
Labels
type:enhancement Feature that impacts end-user type:question Further information is requested

Comments

@mbarbet
Copy link
Contributor

mbarbet commented Jul 31, 2024

Currently the date picker use the local and we have different format in the app :

Capture d’écran 2024-07-31 à 16 52 04

@MohamedHamouGisaia MohamedHamouGisaia added the type:enhancement Feature that impacts end-user label Aug 19, 2024
@MohamedHamouGisaia MohamedHamouGisaia added this to the 26.0.0 milestone Aug 19, 2024
@MohamedHamouGisaia MohamedHamouGisaia removed their assignment Aug 19, 2024
@MohamedHamouGisaia MohamedHamouGisaia modified the milestones: 26.0.0, 26.1.0 Aug 30, 2024
@MohamedHamouGisaia MohamedHamouGisaia modified the milestones: 26.1.0, 27.0.0 Sep 25, 2024
@MohamedHamouGisaia MohamedHamouGisaia self-assigned this Oct 1, 2024
@mbarbet
Copy link
Contributor Author

mbarbet commented Oct 25, 2024

valuesDateFormat is not exposed in the builder for the moment.
To override the format use

import { OWL_DATE_TIME_FORMATS } from '@danielmoncada/angular-datetime-picker';
export const MY_CUSTOM_FORMATS = { 
      fullPickerInput: 'YYYY-MM-DD HH:mm:ss', // CHANGE FORMAT HERE
      parseInput: 'YYYY-MM-DD HH:mm:ss', // CHANGE FORMAT HERE  
      datePickerInput: 'YYYY-MM-DD HH:mm:ss', // CHANGE FORMAT HERE 
      timePickerInput: 'LT',
      monthYearLabel: 'MMM YYYY',
      dateA11yLabel: 'LL',
      monthYearA11yLabel: 'MMMM YYYY'
};
providers: [
{ provide: OWL_DATE_TIME_FORMATS, useValue: MY_CUSTOM_FORMATS }
]```

@MohamedHamouGisaia MohamedHamouGisaia changed the title [Timeline] Datepicker format of date input should use histogramParams.valuesDateFormat Datepicker format of date input should use histogramParams.valuesDateFormat Nov 28, 2024
@MohamedHamouGisaia MohamedHamouGisaia added the type:question Further information is requested label Jan 16, 2025
@MohamedHamouGisaia MohamedHamouGisaia modified the milestones: 27.0.0, 27.1.0 Jan 17, 2025
@MohamedHamouGisaia MohamedHamouGisaia removed this from the 27.1.0 milestone Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Feature that impacts end-user type:question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants