View Single Post
  #1  
Old 01-31-2006, 06:32 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default creating a server time based countdown

Does anyone know how to do this.

I know you can use smarty php to display the time from the server (i. not use javascript which will show the time based on the customers PC clock) with {$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}

but does anyone know how to do a countdown to a specific time or date.

For example we have a sale that will end at midnight tonight

so we want to display

This sale will end in: hh:mm

any ideas
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote