Support Offline: Mon - Fri / 08:00am - 05:00pm (GMT +7)
Your Time: Our Time:

file Assistance with changing weather time to 12-hour format

More
4 years 1 month ago - 4 years 1 month ago #38183 by Justin Kerr
Hello!

I had written here earlier and received support response about changing the hours format to a 12-hour format versus the default 24-hour format for the hourly display in the module. This involved editing a minified .js file (so would need to be unminified, edited, and re-minified). I wanted to ask the following:
  1. Could you folks just provide an adjusted, alternate .js file that has 12-hour format ready to go? I believe the file is siteroot//modules/mod_jux_weather_forecast/assets/js/weather.min.js
  2. Moving forward in the development of this Joomla module, might JoomlaUX consider setting this element up as an editable language string? This would allow the site administrator to more easily manage the date format from within Site Backend > Extensions > Languages > Overrides
  3. For future updates to the module's software, won't I have to worry about whether weather.min.js gets overwritten, and I lose my changes? Wouldn't this element (and other features like it) be better supported by integration with Joomla's HTML overrides capability in templates?

The latter two are more suggestions for you folks to consider as you move forward with adding features to the software. I would like to tweak this look, however, and thought you might be able to easily provide an adjusted weather.min.js.

Using the PHP date string as an example, I'd like the times to render as g:i a (which would render as "2:00 am," "6:00 pm," etc.

Any chance you can provide this, or other assistance? Thanks in advance for your help.
Last edit: 4 years 1 month ago by Justin Kerr.

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #38187 by HienHC
Hi
Thanks for your feedback
You can provide back-end login information
I will check and fix the problem for you
Thanks

Please Log in or Create an account to join the conversation.

Moderators: Jackie
Time to create page: 0.029 seconds
Powered by Kunena Forum