Issue 997: Different dates display in formatDates
Status:  Done
Owner: ----
Closed:  Jul 2011
Reported by roundc...@gmail.com, Jun 14, 2011
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
formatDate.diff
550 bytes   View   Download
Jul 11, 2011
Project Member #1 adamrs...@gmail.com
i think you are mixing up the purpose of the [] and {}. You'd want to use {} in your case. [] is used WITHIN the {}
Status: Done
Jul 12, 2011
#2 roundc...@gmail.com
You're absolutely right. RTFM :-)
Sorry for the confusion!
Jul 19, 2011
Project Member #3 adamrs...@gmail.com
no prob
Jul 19, 2011
Project Member #4 adamrs...@gmail.com
no prob