mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
ALF-14316 - Odin - Date not formatted for some non-english locales
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@37281 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -59,7 +59,7 @@
|
|||||||
<#-- draft vs internal published -->
|
<#-- draft vs internal published -->
|
||||||
"isDraft": ${item.isDraft?string},
|
"isDraft": ${item.isDraft?string},
|
||||||
<#if (! item.isDraft)>
|
<#if (! item.isDraft)>
|
||||||
"releasedOn": "${item.releasedDate?string("MMM dd yyyy HH:mm:ss 'GMT'Z '('zzz')'")}",
|
"releasedOn": "${item.releasedDate?c}",
|
||||||
</#if>
|
</#if>
|
||||||
<#-- true if the post has been updated -->
|
<#-- true if the post has been updated -->
|
||||||
"isUpdated": ${item.isUpdated?string},
|
"isUpdated": ${item.isUpdated?string},
|
||||||
|
@@ -76,7 +76,7 @@ public class BlogPostLibJs
|
|||||||
boolean isPublished = published != null;
|
boolean isPublished = published != null;
|
||||||
if (isPublished)
|
if (isPublished)
|
||||||
{
|
{
|
||||||
data.put("releasedDate", published);
|
data.put("releasedDate", ((Date)published).getTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
// draft
|
// draft
|
||||||
|
Reference in New Issue
Block a user