Support Forum

  • Page:
  • 1

Wrong hour on publish date

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi all,
I have jTweet module installed on my website.
All works fine but i just see a little problem.
When a tweet is posted on my tweet wall, i have a gap of 1 hour on tweetDate tag.
For example: if i tweet a message on twitter at 9h30, it will be displayed on my website with the publish date "10h30".

I know it's on relative_time and rest_relative_time functions, but i have not enough experience in Jquery/javascript to understand how it works.

Can you help me to fix it please ?
Thanks.

PS: Sorry for my poor english.
  • poulpi's Avatar
  • poulpi
  • JB Pro
  • 4 posts
  • Karma: 0
The administrator has disabled public write access.
Hi,

in control panel you can adjust the timezone settings of the server.

I think this will solve this.

Bert
  • Bert de Boer's Avatar
  • Bert de Boer
  • Free Extensions
  • 229 posts
  • 25 Thanks
  • Karma: 20
The administrator has disabled public write access.
Hi Bert,
Thanks for your quick response.

The timezone in my control panel is correct.
The problem appears only with jTweet, all others publish dates like facebook date or K2 items are correct.
I have upgraded my Joomla! version last week, i'm on 2.5 now, can it come from here ?
  • poulpi's Avatar
  • poulpi
  • JB Pro
  • 4 posts
  • Karma: 0
The administrator has disabled public write access.
I just found a solution, but i think it's not "clean"

I've replaced this line:

return parsed_date.getHours()-parsed_date.getTimezoneOffset()/60 + 'h'+zero+ parsed_date.getMinutes();

By this line:

return (parsed_date.getHours()-parsed_date.getTimezoneOffset()/60)-1 + 'h'+zero+ parsed_date.getMinutes();

It works but it seems not clean, isn't it ?
I fear it may cause other problems...

Any ideas to "upgrade" my solution ?

Thanks in advance.
  • poulpi's Avatar
  • poulpi
  • JB Pro
  • 4 posts
  • Karma: 0
Last Edit: 12 years 2 months ago by poulpi.
The administrator has disabled public write access.
I don't really understand why that would be happening, but your solution seems solid. It works and that would be good enough for me ;)
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
Ok Seth, thank you.
  • poulpi's Avatar
  • poulpi
  • JB Pro
  • 4 posts
  • Karma: 0
The administrator has disabled public write access.
no problem.
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers