Hi,
I try to set timezone in my block and put the example script into my script. It works well till I don't try set timezone. I try this:
'until' => date("F d, Y g:i a", mktime(0,0,0,0,0,2009)),
'timezone' => +1,
'format' => 'YOWDHMS',
If I clear timezone set it works well. Othercase it throw this error:
Parse error: syntax error, unexpected T_ECHO, expecting ')' in C:\XAMPP\xampp\htdocs\includes\common.inc(1696) : eval()'d code on line 22
What kind of syntax should I use to set timezone? And I would like use GMT(0)...
Thanx!

Comments

blackice2999’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,

why you don't use the Block submodule with the option "server sync" ? - the next version will also allow timezone settings in the block.

regards
Dennis

erasoft’s picture

Oh, thnax... probably you are right ... but I should install date_api for that. firstly I don't know where is it (lol), second ... I put it into a new block anyway (therefore simple new block) but would like write there some other script also around the timer.
Or you think I'm on bad way?

blackice2999’s picture

Hi,

i doesn't understand why you use eval() (PHP Code in a Block) ... eval is evil...
Install date_api enable it and then enable the submodule jquery_countdown block... so you can easy use a lot of countdowns with a simple UI in the next days they come new features like timezone over the ui...

Example of the UI:
https://img.skitch.com/20110728-rtkc4grdtn1t4ra97dyajeygx5.jpg

erasoft’s picture

lol. Not I use eval()... Drupal throw this error... I just inserted the script what I wrote in my 1st message...

Letharion’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.