OpenAgenda / wordpress

Display customizable OpenAgenda calendars on your WordPress site
GNU General Public License v2.0
3 stars 2 forks source link

Hour format for FR version via API #51

Open danana opened 1 month ago

danana commented 1 month ago

Hello,

We are using the OpenAgenda API to bring in events in our website. Looking at the field dateRange for an event (which is a text field), we noticed this looks different in EN versus FR: EN: Wednesday 13 October, 19:30 FR: Mercredi 13 octobre, 19h30

We want to have the same time separator for FR as well (so use : and not h) , meaning: EN: Wednesday 13 October, 19:30 FR: Mercredi 13 octobre, 19:30

How can we set this up? Is this something we can do in the OpenAgenda admin or something you can update in the API response in FR? Thank you!

OpenAgenda uid: 95186839

kaore commented 1 month ago

Hi @danana we don't provide a way to toggle this separator directly on the API, but you should be able through a little bit of parsing to replace "h" characters with ":" where you want.