Closed (fixed)
Project:
jQuery Countdown
Version:
6.x-1.7
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2011 at 03:59 UTC
Updated:
6 Aug 2012 at 16:31 UTC
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
Comment #1
blackice2999 commentedHi,
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
Comment #2
erasoft commentedOh, 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?
Comment #3
blackice2999 commentedHi,
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
Comment #4
erasoft commentedlol. Not I use eval()... Drupal throw this error... I just inserted the script what I wrote in my 1st message...
Comment #5
Letharion commented