studioespresso / craft-date-range

Date range field for Craft CMS
MIT License
12 stars 6 forks source link

Formatting + localization for entry listing table view #10

Closed siebird closed 4 years ago

siebird commented 4 years ago

This has been a great field for creating an events section for my client. An events plugin would be overkill in this case.

To help with them managing the events, I am showing the field in the entry listings table view. However, the formatting is less than ideal at this point.

Ideally, having an option to show/hide the end date and localize the date formatting would be great. Maybe a field setting could accomplish this where you could enter format wanted or adopt the formatting from the user preferences.

Screenshot here

janhenckens commented 4 years ago

Formatting based on the users locale/preferences sounds like a good idea, I'll have a look if that's possible. Possibly related to #9

janhenckens commented 4 years ago

Just released an update that includes this. The formatting is now based on the user's locale, just like it is for Craft's date fields.

siebird commented 4 years ago

Awesome, work. Thanks for the quick turn around!

janhenckens commented 4 years ago

My pleasure! If you'd like to see anything else added to the plugin, you can always get in touch.