Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Date and time difference time does not work

Asked Modified Viewed 3,419 times
A
Algeciras
A
We got the 0 and 1 and became a virtual universe
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

Hello friends:
I've noticed that in version 7.01.01 paragraph date and time the time difference doesn't work, Click the time zone you out, never changes mark the time server.
img34.imageshack.us/img34/5115/phpfusionerrorhorario.jpg


A greeting - Algeciras
Pd.: I don't speak English translator google
Edited by Algeciras on 18-09-2010 23:01,
0 replies

3 posts

M
marketinggeek
M
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
answered
Newbie

Ya I noticed the same issue.
0 replies
M
Marten
M
Marten 10
Excuse me my bad English. I use Google Translator. Thank you for your understanding.
My PF version: 7.02.05.
  • Junior Member, joined since
  • Contributed 14 posts on the community forums.
  • Started 3 threads in the forums
answered
Junior Member

Find in maincore.php showdate() function, and edit it as follows:
function showdate($format, $val) {
   global $settings, $userdata;
   //if (isset($userdata['user_offset'])) {
   if ((isset($userdata['user_offset'])) && ($userdata['user_offset'] != 0)) {
      $offset = $userdata['user_offset'];
   } else {
      $offset = $settings['timeoffset'];
   }
   if ($format == "shortdate" || $format == "longdate" || $format == "forumdate" || $format == "newsdate") {
      return strftime($settings[$format], $val + ($offset * 3600));
   } else {
      return strftime($format, $val + ($offset * 3600));
   }
}
After this treatment it should work correctly
0 replies
M
marketinggeek
M
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
answered
Newbie

Thanks for the info!
0 replies

Category Forum

Installation Issues - 8

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

M
M
Marten 10
Excuse me my bad English. I use Google Translator. Thank you for your understanding.
My PF version: 7.02.05.
  • Junior Member, joined since
  • Contributed 14 posts on the community forums.
  • Started 3 threads in the forums
A
A
We got the 0 and 1 and became a virtual universe
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
M
M
  • Newbie, joined since
  • Contributed 2 posts on the community forums.

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet