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
|