| jleinbaugh | Tue May 19 2009, 08:54AM | |
![]() | realize you're busy with 0.8 - but the one thing I wish for in Agenda is the ability to change the date to MO/DAY/YEAR instead of DAY/MO/YEAR. Seems like you had mentioned it was time for an overhaul. Any timelines? | |
| bugrain | Tue May 19 2009, 06:06PM | |
![]() ![]() | Not at the moment - this is already in the feature request list. cheers bugrain | |
| bigbadwolf | Wed Jul 01 2009, 11:11AM | |
![]() | I've already begun working on this although I am no PHP programmer. I've managed to massage a few of the date formats but there are some I still cannot get. I will quote from the e107.org thread bugrain replied to as a reminder. "You probably want to look at getFormattedDate() in agendaUtils.php " Ok I've done this and massaged it. I also found that in agenda_varibles there were multiple date formatting codes I had to tweak. For example... $agn_field[3]['valu'] = $agenda->getDateNum()."-".$agenda->getMonthNum()." -".$agenda->getYearNum().",12.00"; Was changed to: $agn_field[3]['valu'] = $agenda->getMonthNum()."-".$agenda->getDateNum()." -".$agenda->getYearNum().",12.00"; I changed anything similar throughout the file. However there are still several areas where the date displays incorrectly. Single day is correct as shown: ![]() But 2 day is not: | |
| bigbadwolf | Tue Jul 07 2009, 02:12PM | |
![]() | Ok.. I found another spot where the date has to be changed which fixes the above. In agendaView6.php I changed the following; function agendaTempShortDate($ds) { global $agenda; $tmp = $agenda->getDayName($ds); $tmp .= " ".$agenda->getMonthName($ds); $tmp .= " ".date("j", $ds) . ', '; $tmp .= " ".date("Y", $ds); return $tmp; } ?> | |
| jimbob | Sun Aug 09 2009, 04:45PM | |
![]() | where would it be possible to change the numeric date display from DD-MM-YYYY to MM-DD-YYYY? This is confusing to people in the U.S. where the latter is the standard. In the image posted I want it to read 08-09-2009 in the red circle. [Edited Sun Aug 09 2009, 06:16PM] | |
| bugrain | Mon Aug 10 2009, 07:06AM | |
![]() ![]() | @jimbob that's what @bigbadwolf is documenting in this post because Agenda does not currently do this cheers bugrain | |
| Zmokin | Tue Jan 05 2010, 05:47AM | |
![]() | Hi bugrain,I realize that this is not a priority for you, but for those of us in the US, this is a pretty big issue with users.I've already managed to change most of the forms to show it 'our' way, but the only thing I haven't been able to find is how to change the format in the section where the date selector is. I'm talking about the date that is shown in the field to the left of the little calendar icon.In the screenshots of bigbadwolf above, that would be the "Date: 07-01-200".I'm no expert by any means, but I've searched through all the agenda files and can't seem to find where this is pulled together.When I look at the source code for the page, I see the following code close to where that is displayed:"##SANITISED## type="text/javascript">Calendar.setup({"ifFormat": "%d-%m-%Y","daFormat":"%Y/%m/%d","firstDay":1," showsTime":false,"showOthers":true,"weekNumbers": true,"inputField":"f-calendar-field-1","button":" f-calendar-trigger-1"});##SANITISED##>"I notice there is a date format in that code (%d-%m-%Y) which looks to be exactly what I need to change to (%m-%d-%Y), but I can't find it anywhere. Is this a function within e107 or the helper files? Since you don't have the time to work on this, could you at least point me in the direction so I can fumble around with it?Thanks in advance. | |
| bugrain | Tue Jan 05 2010, 05:08PM | |
![]() ![]() | Have a look in form_handler.php - I have looked at this in the past and it's not as straight forward as date display, but you may be OK as you want to hard code it (I was trying to make it parameterised). cheers bugrain | |