pragmaMx Support Forum

Archive => veraltete bzw. unsupportete Systeme und Module => Alt Archive => KalenderMx => Thema gestartet von: Ken Walker am 18 Januar 2004, 01:19:15

Titel: Kalendar 1.3 php Nuke 6.9 AM/PM or 24hrs
Beitrag von: Ken Walker am 18 Januar 2004, 01:19:15
I apologize for not speaking German.

Kalendar looks perfect for the website I am putting together at rotary.qblaw.ca for my Rotary Club but I think I have something configured wrong.

The New Item menu allows me to enter time and AM or PM by its buttons but when I try to add an item at 7 pm, it records it as 7 am.  The Hours scroll drop down list doesn't got past 12:00.

When I look at the Calendar on the shiba site, I see it allows times on the 24 hr clock and has no am/pm buttons.

Can anyone help me with this problem?

Thanks.

Ken Walker
Canada
Titel: Re: Kalendar 1.3 php Nuke 6.9 AM/PM or 24hrs
Beitrag von: rld1025 am 18 Januar 2004, 01:30:46
Ken,

I am having the same problem with my install.  I have seen 1 other post about this on this Forum, but no reply.  Does anyone know how to  fix this problem?  

Thanks
Titel: Re: Kalendar 1.3 php Nuke 6.9 AM/PM or 24hrs
Beitrag von: Rayvenhaus am 19 Januar 2004, 18:32:36
Yes there is!!!  Took me awhile to find it, but do this:

To set the system up do display american dates and to fix the AM/PM bug, do the following in your ./modules/Kalendar/language/lang-english.php:

Change line 23 from:
  define("_CALSHORTDATEFORMAT","%y/%m/%d");
to
define("_CALSHORTDATEFORMAT","%m/%d/%y");

change line 26 from
define("_CALTIME24HOUR",0);  // 1 = 24 hour time... 0 = AM/PM time
to
define("_CALTIME24HOUR",1);  // 1 = 24 hour time... 0 = AM/PM time

and to help yourself understand the config part better, change line 206 from
define("_CALUSERSAUTOPOST","gemeldete Termine von angemeldeten Benutzern sofort freischalten");
to
define ("_CALUSERSAUTOPOST","Announce events entered by registered users immediately?");

and line 207 from

define("_CALANONYAUTOPOST","gemeldete Termine von anonymen Benutzern sofort freischalten");
to
define("_CALANONYAUTOPOST","Announce events entered by anonymous users immediately?");

I thaink that takes care of everything that I could find.

Steve
 http://www.myndworx.com

Titel: Re: Kalendar 1.3 php Nuke 6.9 AM/PM or 24hrs
Beitrag von: rld1025 am 20 Januar 2004, 14:51:12
Steve,

Thanks for the very fast reply and info.  Everything is working great now.  I like what you have done with the event_calendar.. very nice upgrades from the other version.  

thanks again,

Bob
www.jediwarriors.com