Author Topic: Help with clock and accurate time  (Read 5050 times)

0 Members and 1 Guest are viewing this topic.

Offline foto1

  • Pre-Newbie
  • Posts: 1
    • View Profile
Help with clock and accurate time
« on: April 02, 2006, 08:41:53 PM »
Greetings,

I am a member of a not-for-profit photography association. We have contracted a company to build us a new website. We asked that they put clocks (w/temp too) on our website for 5 major cities worldwide, and they did.

The problem is the clocks are 5 minutes behind! They told me that nothing can be done. Can anyone please advise us? If we need to get clocks from a differnt source, purchase a service or program, that is not a problem. Posting the wrong time on our website is!

Thank you in advance, feel free to email direct.

Dan

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Help with clock and accurate time
« Reply #1 on: April 02, 2006, 08:53:37 PM »
They told me that nothing can be done.
Are they serious??? omg...what an ignorant host administrator this is! The only two reasons they can not update clock on the server are:
1) they are too lazy (advise: change the host)
2) they dont know how to do that (advise: change the host)

Try replace in includes/functions.php:
Code: [Select]
  return date($format, $timestamp + (3600 * $timezone_offset));
With:
Code: [Select]
  return date($format, $timestamp + (3600 * $timezone_offset) + 300);
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Help with clock and accurate time
« Reply #2 on: November 24, 2006, 09:59:30 PM »
function format_date($format, $timestamp) {
  global $user_info;
  $timezone_offset = (defined("TIME_OFFSET")) ? TIME_OFFSET : 0;
  return date($format, $timestamp + (3600 * $timezone_offset));
}

I replace for this...

function format_date($format, $timestamp) {
  global $user_info;
  $timezone_offset = (defined("TIME_OFFSET")) ? TIME_OFFSET : 0;
  return date($format, $timestamp + (3600 * $timezone_offset) + 300);
}

... and nothing happened

Offline son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Help with clock and accurate time
« Reply #3 on: January 07, 2007, 09:27:53 PM »
Still no reply? :(