Author Topic: Calendar - Recurring events starting in a future month  (Read 6863 times)

pablo

  • Newbie
  • *
  • Posts: 2
    • View Profile
Calendar - Recurring events starting in a future month
« on: March 08, 2009, 09:31:01 am »
Hi there,

I've just started using the the latest 1.3rc1, and am pretty much just using it for the calendar at the moment.

When I add a recurring event - starting in a future month (say April) when it's now still March, the Calendar widget that pops up for me to pick the end date, shows March. This is confusing, and it should probably pop up the month of the start date of the recurring event.

Cheers, and thanks for the great program
 



 

setekh

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: Calendar - Recurring events starting in a future month
« Reply #1 on: March 08, 2009, 01:37:14 pm »
The date format must be changed in lang.js and general.php and it must be like that :
'date format' => 'd/m/Y',
My observation is that it is better to use capital 'Y' at the end.
I have changed all m/d/y in the following files to d/m/y and for now the installation works fine and there are no date mistakes, but it's too early to tell.

There are hardcoded dates m/d/Y format in :
assets/javascript/extjs/ext-all.js
assets\javascript\extjs\ext-all-debug.js
assets\javascript\ogmin.js':

In "imageChooser.js" there is a hardcoded date as well:

var formatData = function(data) {
       data.shortName = og.clean(data.name.ellipse(15));
       data.sizeString = og.clean(formatSize(data));
       data.dateString = new Date(data.lastmod).format("m/d/Y g:i a");
       this.lookup[data.name] = data;
       return data;
    };
Please correct this, i know that this is part of the js framework, but it would be nice if that functions checks for the selected date format as well...
Cheers ...
« Last Edit: March 08, 2009, 02:13:46 pm by setekh »

pablo

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Calendar - Recurring events starting in a future month
« Reply #2 on: March 09, 2009, 07:02:15 am »
Thanks a ton for this - it fixed it right away.

setekh

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: Calendar - Recurring events starting in a future month
« Reply #3 on: March 14, 2009, 11:13:35 pm »
No problems so far with all files changed to d/m/Y format, i will upload them somewhere so other do not need to correct them again and again, and will continue to update for every new version, if that's o.k. with the developers...

http://www.filedropper.com/date-fix
http://www.koshche.com/showfile-417/date_fix.zip
« Last Edit: March 14, 2009, 11:39:47 pm by setekh »

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Calendar - Recurring events starting in a future month
« Reply #4 on: March 16, 2009, 04:40:09 pm »
I don't understand what the problem is. Those values in ext-all.js are not supposed to be affecting functionality, because when we use an ExtJS date control we tell it what date format we want. The ImageChooser did have a hardcoded date and will be fixed for next version.

The error that described pablo on the first post is about the default date shown when defining repeating events, which is today's date instead of the date selected in the calendar. I think that this fix that setekh submitted doesn't fix that issue in particular.