Download & Extend

setting a different hour than server time

Project:Countdown
Version:master
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

until I used 'countdown' module I never noticed/cared/bothered the fact my (hosting service) server has a different hour than mine ;-)

A new setting in countdown named "difference to your server time" or something, together with showing the server time would be highly wellcome. Or maybe would be simpler to have a way to stick to the drupal installation time (or toggle between "server time" and "drupal installation time").

What do you think?

Comments

#1

I too think this would be good functionality to put into this module. Have it show the time based on what the Drupal install time zone was..

#2

I think that the site administrators should be able to set a time and date that they want the countdown to go to, and have it set in their local time, and have it actually show the time relative to this, not to the server time.

Doesn't seem like that difficult of a problem..

-Myke

#3

Version:4.7.x-1.x-dev» master

#4

Until this gets fixed, you can add the following timezone offset (adjust the $offset variable based on your timezone vs. UTC) to countdown.module:

function theme_countdown_block() {
  $time = time();
  $offset = -4;
  $time = $time + ($offset * 60 * 60);

...