Is it possible to show the time and date
Is it possible to show the time and date
I know with standard website design you can use SSI to show the server time and date on your website. Is there a way to do this through CMS? So far everything i've tried has failed.
Re: Is it possible to show the time and date
Please look at Extensions > Tags in admin panel. There's a tag named current_date which can do what you want
.

-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Is it possible to show the time and date
Also, the CustomContent module can be used for this. It can also be used to display different content based on the time and date. The list of variables that CustomContent exports is now greatly expanded, and should be very useful for you.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Is it possible to show the time and date
both work great, but i didn't realize till now that my server is in a different timezone than i'm wanting displayed on my website. Is there some way to modify this to move the time up 1 hour for my time zone?
Re: Is it possible to show the time and date
Have you tried to call date_default_timezone_set() in index.php?
http://www.dynamicwebpages.de/php/funct ... ne-set.php
http://www.dynamicwebpages.de/php/funct ... ne-set.php
Re: Is it possible to show the time and date
cyberman wrote: Have you tried to call date_default_timezone_set() in index.php?
http://www.dynamicwebpages.de/php/funct ... ne-set.php
I have tried this but have been un-successfull. Where would the code go? I'm not too familiar with php so i'll strugle a little bit. Here is what I have tried putting into the index.php file. Either I received (Call to undefined function: date_default_timezone_set()) or the page pulled up fine but the time did not change.
echo(date_default_timezone_set("Europe/Paris"));
Re: Is it possible to show the time and date
date-default-timezone-set is valid for php >= 5.1 versionnauticalwebd wrote:cyberman wrote: Have you tried to call date_default_timezone_set() in index.php?
http://www.dynamicwebpages.de/php/funct ... ne-set.php
I have tried this but have been un-successfull. Where would the code go? I'm not too familiar with php so i'll strugle a little bit. Here is what I have tried putting into the index.php file. Either I received (Call to undefined function: date_default_timezone_set()) or the page pulled up fine but the time did not change.
echo(date_default_timezone_set("Europe/Paris"));
Top for User Contributed Notes in date function there is a useful function
Alby