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

Bug on Calendar Widget in locale "es" #662

Closed
atouza-opentrends opened this issue Jul 26, 2019 · 0 comments
Closed

Bug on Calendar Widget in locale "es" #662

atouza-opentrends opened this issue Jul 26, 2019 · 0 comments

Comments

@atouza-opentrends
Copy link

On OpenCms 11.0.0

It's not possible to set a date in a content with the workplace in spanish using either CmsSerialDateWidget or CmsCalendarWidget widgets.

Steps to reproduce it.

  • Create any resource with a field using CmsSerialDateWidget or CmsCalendarWidget
  • Set a date
  • Save
  • Change Workplace language to spanish
  • Try to touch the date

An error arises telling that the format is not valid.

Fix

On org.opencms.locale.es.jar change in the file /org/opencms/gwt/clientmessages_es.properties the following properties:

Before

GUI_DATEBOX_TIME_PATTERN_0          =hh:mm aa
GUI_DATEBOX_DATETIME_PATTERN_0      =MM/dd/yyyy hh:mm aa

After

GUI_DATEBOX_TIME_PATTERN_0          =HH:mm
GUI_DATEBOX_DATETIME_PATTERN_0      =dd/MM/yyyy HH:mm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants