Webmastersite.net
Register Log In

Current time in EST on main index page?

Comments on Current time in EST on main index page?

Michelle
Member

Usergroup: Customer
Joined: Sep 27, 2004
Location: New York City

Total Topics: 24
Total Comments: 46
Posted Jun 03, 2009 - 2:59 AM:

I'd like my main index page to show the current time in New York City, and have been looking through the template variables for a way to do it. I've found plenty of date/time and formatting options for link variables, but I haven't found any just for the current date. Is there a way to do this with template variables or should I use PHP instead?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Jun 04, 2009 - 1:40 PM:

That'd require php. To use the current WSN default/profile timezone,
<?php echo showdate("%x - %X", time()); ?>
where the format comes from http://www.php.net/strftime
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.