Keyword

Time Zone

  • Dave Bishop
  • Dave Bishop's Avatar Topic Author
  • Offline
  • New Member
More
8 years 11 months ago #149807 by Dave Bishop
Time Zone was created by Dave Bishop
Hello, I have a RSS feed I created and the time is off by one hour. The feed itself is correct. zapier.com/engine/rss/877924/events-cube

But the display on my site is one hour ahead.

Is there a way to fix this to match the time the actual feed uses?

Thank you

imgur.com/sMXgTnO

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

More
8 years 11 months ago #149817 by Lefteris
Replied by Lefteris on topic Time Zone
Hi,

The date on the XML contains a timezone offset. That is probably different on your server. I suggest to create an override for the module layout and handle the date there using PHP. Have you tried this: www.joomlaworks.net/forum/simple-rss-feed-reader/42549-date-format#146793 ?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Dave Bishop
  • Dave Bishop's Avatar Topic Author
  • Offline
  • New Member
More
8 years 11 months ago #149827 by Dave Bishop
Replied by Dave Bishop on topic Time Zone
Hello, I am not sure what to reference in that post you linked to. But yes my server is one hour ahead of my time zone.

Can you help me understand the override a bit more?

Thanks!

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

  • Dave Bishop
  • Dave Bishop's Avatar Topic Author
  • Offline
  • New Member
More
8 years 11 months ago #149828 by Dave Bishop
Replied by Dave Bishop on topic Time Zone
Actually, I am on a cPanel with a VPS account so I am going to see if I can just change it globally for my whole account. Thanks

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

  • Dave Bishop
  • Dave Bishop's Avatar Topic Author
  • Offline
  • New Member
More
8 years 11 months ago #149831 by Dave Bishop
Replied by Dave Bishop on topic Time Zone
I had my hosting company change the server time but the output in the module is still off. Does this change once the time is set correctly or is there something else I need to do?

Thanks

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

More
8 years 11 months ago #149833 by Lefteris
Replied by Lefteris on topic Time Zone
You have to create a module override first. Module overrides are the way to change the output in Joomla! . Details about module overrides can be found at docs.joomla.org/Understanding_Output_Overrides . Read the section named "Module Layout Overrides" . After you create the override follow the instructions at www.joomlaworks.net/forum/simple-rss-feed-reader/42549-date-format#146793 .

Let me know if you need more help.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Dave Bishop
  • Dave Bishop's Avatar Topic Author
  • Offline
  • New Member
More
8 years 11 months ago #149837 by Dave Bishop
Replied by Dave Bishop on topic Time Zone
I don't see your module listed in the overrides part of my template. I am not very familiar with this but what module am I suppose to create the override for?

I did this but it's just the default Joomla module.
Message

Override created in /templates/jm-commune-offices/html/mod_syndicate

Successfully created the override.


Is there any possible way you could be more specific?

I am suppossed to change this or add this?
<?php echo JHtml::_('date', $feed->itemDate, JText::_('DATE_FORMAT_LC3')); ?>

I apologize for not understanding what you want me to do.
Also, would not changing the server time zone just fix this?

Thank you for your help

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

More
8 years 11 months ago - 8 years 11 months ago #149840 by Lefteris
Replied by Lefteris on topic Time Zone
You just copy the folder modules/mod_jw_srfr/tmpl/default inside /templates/jm-commune-offices/html/mod_jw_srfr .

Then the code from your template is the one that will be executed. The date is printed around line 38 of file /templates/jm-commune-offices/html/mod_jw_srfr/default/default.php: github.com/joomlaworks/simple-rss-feed-reader/blob/master/tmpl/default/default.php#L38 .

Replace that line with
<span class="srfrFeedItemDate"><?php echo JHtml::_('date', $feed->itemDate, JText::_('DATE_FORMAT_LC3')); ?></span>

You also have to change the date format at the module settings as described in my answer at www.joomlaworks.net/forum/simple-rss-feed-reader/42549-date-format#146793 .

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 8 years 11 months ago by Lefteris.

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


Powered by Kunena Forum