-
Notifications
You must be signed in to change notification settings - Fork 55
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
No time display when not english #79
Comments
No idea? Is something wrong with some Yii2 configuration parameters? Id ont got it fixed, yet. |
You have to set the Read the docs for DateTimePicker widget settings. The It will default to |
Hi, I got it - the language is set properly to de, but in the .de locale file, the date format is wrong: https://github.com/kartik-v/yii2-widget-datetimepicker/blob/master/assets/js/locales/bootstrap-datetimepicker.de.js#L16 This would be the file for a datepicker - not for dateTIMEpicker. Is this fixable through you or should I set this manually? I believe this is a wrong setting for this file. |
No just set the |
For example
But you can submit a PR to change the |
But this is hard coded then. This results in fixed format for every language then, right? It should auto-switch. In my eyes the file has wrong format. The file, linked above, should have defaults to:
I see, the language files have different defaults - some with time, some without. But this here is a dateTIMEpicker, so here we should set the time within defaults. If someone wants no time, we should use the https://github.com/kartik-v/yii2-widget-datepicker or am I wrong? |
As I mentioned you can submit a pull request to change the default format for german language in the |
Ok, thanks :) |
Ah, now I understand the "why": The original author did not seperated datepicker and datetimepicker and thus your datetimepicker uses the default locale from the developer. I create a Pull request ;) |
When I use english as locale, the Widget uses correct time format (Is use DateTimePicker, so this should be clear.
en-US
de-DE
Why is the time here missing? Is something unconfigured here?
Field-Config:
The text was updated successfully, but these errors were encountered: