Skip to content

Commit

Permalink
SAK-44587 Site creation date not being saved (sakaiproject#8765)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgarciaentornos authored Dec 3, 2020
1 parent 04c21a3 commit b3ffbcf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -835,20 +835,13 @@ public User getModifiedBy()


public Date getCreatedDate() {
Date date = null;
if (m_createdTime != null) {
new Date(m_createdTime.toEpochMilli());
}
return date;
return m_createdTime != null ? new Date(m_createdTime.toEpochMilli()) : null;
}

public Date getModifiedDate() {
Date date = null;
if (m_lastModifiedTime != null) {
date = new Date(m_lastModifiedTime.toEpochMilli());
}
return date;
return m_lastModifiedTime != null ? new Date(m_lastModifiedTime.toEpochMilli()) : null;
}

/**
* @inheritDoc
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1323,6 +1323,7 @@ public String buildMainPanelContext(VelocityPortlet portlet,
boolean inShortcut) {
context.put("tlang", rb);
context.put("clang", cfgRb);
context.put("userTimeService", userTimeService);
// TODO: what is all this doing? if we are in helper mode, we are
// already setup and don't get called here now -ggolden
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,7 @@
#end
</td>
<td headers="createdOn">
#set($createdTime="")
#set($createdTime = $!site.getCreatedTime())
$!createdTime.toStringLocalFull()
#if ($site.CreatedDate) $userTimeService.dateTimeFormat($site.CreatedDate, $tlang.Locale, 2) #end
</td>
</tr>
#end
Expand Down

0 comments on commit b3ffbcf

Please sign in to comment.