| Issue 997: | Different dates display in formatDates | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Defect: the rendering of different dates using formatDates and [] brackets renders the first date twice.
1. define an event with different start/end dates:
event.start = Date {Sat Jul 02 2011 00:45:00 GMT-0600 (CST)}
event.end = Date {Sun Jul 03 2011 03:45:00 GMT-0600 (CST)}
2. define format string with []:
format = "ddd dd.MM.[ - ddd dd.MM.]";
3. call formatDates(event.start, event.end, format);
Expected result: "Sa 02.07. - Su 03.07."
Observed result: "Sa 02.07. - Sa 02.07."
Proposed fix: switch variables date and otherDate on lines 1514 and 1515
Jul 12, 2011
You're absolutely right. RTFM :-) Sorry for the confusion!
Jul 19, 2011
no prob
Jul 19, 2011
no prob |
|
| ► Sign in to add a comment |
i think you are mixing up the purpose of the [] and {}. You'd want to use {} in your case. [] is used WITHIN the {}