Keyword

Adjust time in mod_jw_srfr-v1.4_j15

  • kcfantasy
  • kcfantasy's Avatar Topic Author
  • Offline
  • New Member
More
15 years 1 month ago #21489 by kcfantasy
Adjust time in mod_jw_srfr-v1.4_j15 was created by kcfantasy
Hi,

Love the module, however, I am having some issues with it displaying the correct time of the RSS entry. The time displayed by the module is one hour earlier than the actual time.

My site, Fun With TP: funwithtp.com

Facebook status update RSS feed for Travis Pflanz used in Simple RSS Feed Reader.

The time on the feed is correct, and the time on my articles are correct... I can't figure out how to fix the time on Simple RSS Feed Reader.

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

  • kcfantasy
  • kcfantasy's Avatar Topic Author
  • Offline
  • New Member
More
15 years 1 month ago #21490 by kcfantasy
Replied by kcfantasy on topic Re: Adjust time in mod_jw_srfr-v1.4_j15
Following the guide here: us.php.net/manual/en/timezones.america.php and the reply by ramesh638co at hotmail dot com

Around line 174 I added:
date_default_timezone_set('America/Chicago');

BOFORE

if($srfr_ftimezone) {
        echo $item->get_date('G:i (\G\M\T) - j.m.Y'); // GMT timezone
} else {
	echo $item->get_date('l, F j @ g:i a'); // Local timezone
}

Note: My local time zone is CST and my host is EST. Also, I had already formatted the date/time output.

Developers, is this correct? Will each visitor see the correct time in their current time zone?

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

  • kcfantasy
  • kcfantasy's Avatar Topic Author
  • Offline
  • New Member
More
15 years 1 month ago #21491 by kcfantasy
Replied by kcfantasy on topic Re: Adjust time in mod_jw_srfr-v1.4_j15
Apparently this did not work... it is showing the central time zone time for all time zones... thanks to my friends on facebook for helping me figure out it was not working.

Still looking for the right answer.

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

More
13 years 9 months ago #21492 by kyriakos Kazazis
Replied by kyriakos Kazazis on topic Re: Adjust time in mod_jw_srfr-v1.4_j15
i have a similar problem.
wrong time :/
do anyone know how to fix it?

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

More
13 years 9 months ago #21493 by kyriakos Kazazis
Replied by kyriakos Kazazis on topic Re: Adjust time in mod_jw_srfr-v1.4_j15
kcfantasy, in what file did you added that code?

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


Powered by Kunena Forum