1
fosterm
Changing Date/Time Format in them 7dana-soft
  • 2005/9/11 20:41

  • fosterm

  • Just popping in

  • Posts: 93

  • Since: 2005/8/7 2


Hi.

I am using XOOPS 2.2.3(2.2.2rc). I am also using the 7dana-soft theme.

I wanted to change the date/time format that appears at the top left of that theme.

I accomplished this by changing the format in modifier.date_format.php
FromQuote:
function smarty_modifier_date_format($string, $format="%b %e, %Y", $default_date=null)


to
Quote:
function smarty_modifier_date_format($string, $format="%B %e, %Y | %I:%M %p", $default_date=null).


I also changed the javascript clock( <script language="JavaScript" type="text/javascript" src="<{$xoops_imageurl}>images/clock.js">
</script>) in theme.html to

the shorty version....{$smarty.now|date_format}


This accomplished my needed change in the format, but now the time is 1 hour ahead of my local time. It seems to be using the servers time only(-5). I am (-6) in my time zone.

I have tried setting the time in my user profile(made no change no matter what i set it to), as well as in Preferences...General Settings...None of those setting seem to effect the time.

Anyone able to help me out a bit? Did I modify the wrong files?

Thanks
Foz
http://www.thewoodlandsmonitor.com/testsite

2
noisia
Re: Changing Date/Time Format in them 7dana-soft
  • 2006/1/12 3:39

  • noisia

  • Not too shy to talk

  • Posts: 123

  • Since: 2004/8/24


I have the same issue. My webserver is one hour different from my own timezone.

I have tried
{$smarty.now|date_format:"%A, %B %e, %Y| %I+1:%M %p"}

but then the time just shows like this
11+1:43 AM


so that is no good.

There must be a way to calculate it, right?

I have also tried to change the time zones in the admin. There is the server time zone setting and the main time zone setting, but they do not seem to affect the $smarty.now

Any help would be greatly appreciated.


Login

Who's Online

210 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 210


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits