ALF-14316 - Odin - Date not formatted for some non-english locales

- Commited code has been reverted, becauces it caused another error (update of a blog post was not possible)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@37377 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2012-06-01 16:57:13 +00:00
parent 94b42eebfe
commit 3daff3fc56
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@
<#-- draft vs internal published -->
"isDraft": ${item.isDraft?string},
<#if (! item.isDraft)>
"releasedOn": "${item.releasedDate?c}",
"releasedOn": "${item.releasedDate?string("MMM dd yyyy HH:mm:ss 'GMT'Z '('zzz')'")}",
</#if>
<#-- true if the post has been updated -->
"isUpdated": ${item.isUpdated?string},

View File

@@ -76,7 +76,7 @@ public class BlogPostLibJs
boolean isPublished = published != null;
if (isPublished)
{
data.put("releasedDate", ((Date)published).getTime());
data.put("releasedDate", published);
}
// draft