1
Poslanik
Site time
  • 2005/12/26 23:58

  • Poslanik

  • Just popping in

  • Posts: 95

  • Since: 2005/2/11


I've got this problem regarding time zones. You see, when I'm adding a new poll (xoopspoll module) under current time it prints GMT time but I've set CET for default timezone in system preferences and EST for server time since the servers are located there.

Is there a way this can be resolved?

2
script_fu
Re: Site time

Hum... As far as I know all servers should be set GMT. I dont think I have ever been on a server that wasn't. I guess if you have control over it its cool. But that sure would mess up everyone else...

3
Dave_L
Re: Site time
  • 2005/12/27 0:40

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Use this script to check the server time zone:

echo date('r'?>


The XOOPS setting for server time zone has to be consistent with that.

4
Poslanik
Re: Site time
  • 2005/12/27 11:39

  • Poslanik

  • Just popping in

  • Posts: 95

  • Since: 2005/2/11


If I make a custom block with any PHP at all (set to PHP of course) I can't see sh*te. When I set the block to HTML it's ok... :/

I even tried adding the code to my theme file but that's not working either, this line of code is wrong.

Jesus wtf is wrong now, I can't print any PHP. Tried but that isn't working either, oh jesus. Btw I know the PHP has to be at the top of the page before the doc type tag. I just can't get any PHP to work be it in block or theme. Can anyone help me out?

5
Dave_L
Re: Site time
  • 2005/12/27 12:42

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


In a PHP custom block, omit the initial "< ? php" and the final "? >". XOOPS adds those automatically.

I don't know how you're attempting to put PHP in a theme.

The script I posted above can either be placed in a custom block as:

echo date('r');


Or you can create a separate file named (for example) date.php, containing:

echo date('r'?>


and then browse that file.

6
Quest
Re: Site time
  • 2005/12/27 13:19

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


My guess is that you don't have the GMT-Greenwich Mean Time set correctly for one or both of your areas.

Knowing: Where are your servers located and where are you located? Croatia? Would help someone to help you.

Login

Who's Online

299 user(s) are online (207 user(s) are browsing Support Forums)


Members: 0


Guests: 299


more...

Donat-O-Meter

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

Latest GitHub Commits