Skip to content

Commit

Permalink
SAK-41187 - Items added with start/due time of 12am do not display in…
Browse files Browse the repository at this point in the history
… month view

Removed an unused variable in the template
  • Loading branch information
jonespm authored and Miguel Pellicer committed Jan 14, 2019
1 parent 8ab9fe4 commit 258363f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4138,7 +4138,7 @@ public MyMonth calMonth(int month, CalendarUtil m_calObj, CalendarActionState st
// Each monthObj contains dayObjs for the number of the days in the month.
dateObj.setTodayDate(m_calObj.getMonthInteger(),m_calObj.getDayOfMonth(),m_calObj.getYear());

startTime = TimeService.newTimeLocal(m_calObj.getYear(),m_calObj.getMonthInteger(),m_calObj.getDayOfMonth(),00,00,00,001);
startTime = TimeService.newTimeLocal(m_calObj.getYear(),m_calObj.getMonthInteger(),m_calObj.getDayOfMonth(),00,00,00,000);
endTime = TimeService.newTimeLocal(m_calObj.getYear(),m_calObj.getMonthInteger(),m_calObj.getDayOfMonth(),23,59,59,999);

eventList = CalendarEventVectorObj.getEvents(TimeService.newTimeRange(startTime,endTime,true,true));
Expand All @@ -4156,7 +4156,7 @@ else if (start == true)
// fill empty spaces for the first days in the first week in the month before reach the first day of the month
dateObj.setTodayDate(m_calObj.getMonthInteger(),m_calObj.getDayOfMonth(),m_calObj.getYear());

startTime = TimeService.newTimeLocal(m_calObj.getYear(),m_calObj.getMonthInteger(),m_calObj.getDayOfMonth(),00,00,00,001);
startTime = TimeService.newTimeLocal(m_calObj.getYear(),m_calObj.getMonthInteger(),m_calObj.getDayOfMonth(),00,00,00,000);
endTime = TimeService.newTimeLocal(m_calObj.getYear(),m_calObj.getMonthInteger(),m_calObj.getDayOfMonth(),23,59,59,999);

timeRange = TimeService.newTimeRange(startTime,endTime,true,true);
Expand Down Expand Up @@ -4185,7 +4185,7 @@ else if (start == true)
dateObj.setFlag(1);

dateObj.setTodayDate(m_calObj.getMonthInteger(),m_calObj.getDayOfMonth(),m_calObj.getYear());
startTime = TimeService.newTimeLocal(m_calObj.getYear(),m_calObj.getMonthInteger(),m_calObj.getDayOfMonth(),00,00,00,001);
startTime = TimeService.newTimeLocal(m_calObj.getYear(),m_calObj.getMonthInteger(),m_calObj.getDayOfMonth(),00,00,00,000);
endTime = TimeService.newTimeLocal(m_calObj.getYear(),m_calObj.getMonthInteger(),m_calObj.getDayOfMonth(),23,59,59,999);


Expand All @@ -4210,7 +4210,7 @@ else if (start == true)
m_calObj.nextDate();
dateObj.setTodayDate(m_calObj.getMonthInteger(),m_calObj.getDayOfMonth(),m_calObj.getYear());

startTime = TimeService.newTimeLocal(m_calObj.getYear(),m_calObj.getMonthInteger(),m_calObj.getDayOfMonth(),00,00,00,001);
startTime = TimeService.newTimeLocal(m_calObj.getYear(),m_calObj.getMonthInteger(),m_calObj.getDayOfMonth(),00,00,00,000);
endTime = TimeService.newTimeLocal(m_calObj.getYear(),m_calObj.getMonthInteger(),m_calObj.getDayOfMonth(),23,59,59,999);

timeRange = TimeService.newTimeRange(startTime,endTime,true,true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@
<tr>
#foreach($u in [0..6])
#set ($mu = $monthArray.getDay($xn,$u))
#set($eventsn = $mu.getEvents())
#if ($mu.getFlag() == 1) ## today
#set($eventsn = $mu.getEvents())
#set($eventsn = $eventsn1)
#set($flag = "false")

#foreach ($m in $eventsn)
Expand All @@ -71,12 +70,9 @@
#end

#elseif ($mu.getFlag() == 0) ## days dropping out of the current month
#set ($eventsn = $mu.getEvents())
<td align="right" valign= "top" bgcolor="#cccccc" height="51" class="borderGrayMonth">

#else ## days in the current month, but not today
#set ($eventsn = $mu.getEvents())
#set($eventsn = $eventsn1)
#set($flag = "false")

#foreach ($m in $eventsn)
Expand Down

0 comments on commit 258363f

Please sign in to comment.