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:
Tuna Aksoy
2012-05-31 10:19:34 +00:00
parent 3999f9dec9
commit a211d82806
2 changed files with 2 additions and 2 deletions

View File

@@ -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},

View File

@@ -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