Форумы / Cotonti / Support / Timezone, Age

12>>>

incorrect timezone, age.

Twiebie
#1 03.08.2010 16:15
Just finished setting up a new website based on Cotonti and I used Seditio previously and I always had the timezone set to GMT+1 (which is where the server is). But Cotonti is showing a completely different time than it actually is in the GMT+1 zone?

Another thing; Cotonti sets the age of all the users automatically to 1999-November-30, and it's impossible for the user to correct this because after updating the profile it just jumps back again.

Thanks.
pieter
#2 03.08.2010 17:06
Are you using the latest version? Because the age-problem was on old bug.

In 0.6.3 the user birthday problem was solved: See http://www.cotonti.com/news/announce/genoa_063_released

Added 3 minutes later:

admin.php?m=config&n=edit&o=core&p=time

What is written in
Server timezone and default timezone?
... can we help you ...
Отредактировано: pieter (03.08.2010 17:16, 13 лет назад)
Twiebie
#3 03.08.2010 17:46
Yes i'm running the latest version. (0.6.9)
Server time zone: +1
Default time zone: +1
Отредактировано: Twiebie (03.08.2010 18:37, 13 лет назад)
Kingsley
#4 03.08.2010 19:12
have the time problem 2, for ages.. not really a big thing so I've let it be..

but a solution is always welcome
Twiebie
#5 03.08.2010 19:14
Indeed it's not the biggest problem in the world, but still I really would like to see a solution for this.
pieter
#6 03.08.2010 19:25
I got same problem, but never noticed it.
I will create a bug report.

Added 34 seconds later:

Ticket 507

Here at cotonti.com the error does not occur.
... can we help you ...
ez
#7 03.08.2010 21:09
This could have something to do with DST !!

So be carefull with this one

Is the time difference 1 hour ?????

Voor ons kaaskoppen: Zomer / Wintertijd
==- I say: Keep it EZ -==
Kingsley
#8 03.08.2010 22:52
Mine differs with 3hrs.
yes both are set to +1
Trustmaster
#9 09.08.2010 00:06
Please check this part of your datas/config.php:
// ========================
// Default built-in time zone settings
// See http://php.net/manual/en/timezones.php
// ========================
date_default_timezone_set('GMT');

It makes sense as well as those offsets your set in AdminCP.

Added 4 days later:

Bump! Please let me know if you still have problems with correct default timezone.
May the Source be with you!
Отредактировано: Trustmaster (13.08.2010 02:14, 13 лет назад)
Kingsley
#10 13.08.2010 03:00
@ trustmaster

I'm not at home right now, but I will let you know by tomorrow.

Added 12 hours 33 minutes later:

It the same in my config.php as in your example Trustmaster
Отредактировано: Kingsley (13.08.2010 15:33, 13 лет назад)
Trustmaster
#11 13.08.2010 16:01
So set it to a correct value like:
date_default_timezone_set('Europe/Amsterdam');
May the Source be with you!
ez
#12 13.08.2010 16:25
Yeah GMT is UK i think....
==- I say: Keep it EZ -==
Kingsley
#13 13.08.2010 17:09
GMT is uk indeed. So +1 in admin should be sufficient, but not.
Trustmaters rather simple solution fixed it (feel kinda dumb coz it never crossed my to change it in config.php)
Trustmaster
#14 13.08.2010 20:20
I'm sorry but setting this option is neccessary and required since PHP 5.3. This is not unique to Cotonti, the timezone just has to be configured in any PHP application (since 5.3) that uses date functions. So I consider this bug to be "solved" now.

Added 1 hour 59 minutes later:

As for the birthday problem please answer these questions:
  1. Which Cotonti ver. are you running?
  2. Have you updated it from earlier versions?
  3. If updating from 0.0.5 or earlier, have you ever ran a PHP patcher sql/patch-0.6.txt as a PHP script in root folder?
May the Source be with you!
Отредактировано: Trustmaster (13.08.2010 22:20, 13 лет назад)
pieter
#15 13.08.2010 22:25
For the moment: 0.6.8(r1232) / 0.6.8
Upgraded from LDU
Patch? I don't know if I did apply it, can we still do it?
... can we help you ...

12>>>