1
StevenB
Lost in Time - How does CBB get it right?
  • 2007/1/28 23:34

  • StevenB

  • Just popping in

  • Posts: 61

  • Since: 2006/9/3 2


Hi All,

I'm working on my first theme and I'm having a whole lotta fun with time/day.

My servers site says thier servers are located in California, USA, and I'm located in Arizona, USA but if that was actually the case in XOOPS Admin I would set the server timezone as (GMT-8:00) Pacific Time... and the default timezone to (GMT-7:00) Mountain Time... HMMM, then why do I have to set the sever timezone to (GMT+2:00) Athens... to get CBB to produce the right time/date? OK maybe thier not REALLY located in California, I can deal with that. This paragraph only illustrates information and what I think I know.

So.. In the theme I'm using the following Smarty Tag:
<{$smarty.now|date_format:"%A, %B %e, %Y"}>
and that obviosly produces the date where the server is loocated.

Two questions:

I've been combing through the CBB files trying to figure out how CBB gets it right but I can't find it. Can anyone point me to the right file where CBB sets the time?

Or is it possible to edit the Smarty Tag or run a php script something like smarty.now -8hrs? I know thats a bad example I'm obviously not a programmer.

Thanks for any help/suggestions/ideas/resource links/critisism/ etc in advance

Steve

2
StevenB
Re: Lost in Time - How does CBB get it right?
  • 2007/1/28 23:41

  • StevenB

  • Just popping in

  • Posts: 61

  • Since: 2006/9/3 2


I am also looking into two other possiblities to get the date/time right. Maybe a way to use the ISP's timezone or even the users pc. Any thoughts on this would also be GREATLY appreciated.

Just looking for the best and most accurate way to get this right.

Thanks again,

Steve

Login

Who's Online

151 user(s) are online (92 user(s) are browsing Support Forums)


Members: 0


Guests: 151


more...

Donat-O-Meter

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

Latest GitHub Commits