private static final String DATE_STYLE = "MS";
publicationMetadata.add(new DocumentMetadataEntry(getString("creationdate"),
private String formattedCalendarByStyle(Calendar calendar, String patternStyle) {
if (calendar != null) {
DateTimeFormatter dtf = DateTimeFormat.forStyle(patternStyle).withLocale(getLocale());
return dtf.print(new DateTime(calendar));
}
return StringUtils.EMPTY;
}
Hi Guys,I got a customer which finds it problematic to see the dates, well especially times in the CMS because of "privacy" reasons.I have the following dialog:So I looked up the class:org.hippoecm.frontend.editor.workflow.dialog.DocumentMetadataDialogprivate static final String DATE_STYLE = "MS";publicationMetadata.add(new DocumentMetadataEntry(getString("creationdate"),private String formattedCalendarByStyle(Calendar calendar, String patternStyle) {
if (calendar != null) {
DateTimeFormatter dtf = DateTimeFormat.forStyle(patternStyle).withLocale(getLocale());
return dtf.print(new DateTime(calendar));
}
return StringUtils.EMPTY;
}Well this looks pretty hardcoded.What would the most efficient way be to hide the time?
It can be a JS solution as well, but it has been problematic injecting the right code at the right time (at initialization of this dialog) without some kind of timer functionality.Cheers,K--Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 745 Atlantic Avenue, Boston, MA 02111
US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com
--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.