Configure date format

401 views
Skip to first unread message

danifr

unread,
Jul 2, 2015, 3:12:10 AM7/2/15
to rundeck...@googlegroups.com
Hi,

Is there a way to change the date format on the Activities page?
American format is kinda confusing for some of our users.

Thanks,
Daniel.

danifr

unread,
Jul 10, 2015, 9:46:01 AM7/10/15
to rundeck...@googlegroups.com
Any feedback on this?

Thanks!!

Greg Schueler

unread,
Jul 10, 2015, 12:46:01 PM7/10/15
to rundeck...@googlegroups.com
Hi, the format is actually defined in the internationalization messages file.

To change this format, you would need to add a new messages file for your language. 

here is the location of the default file:

server/exp/webapp/WEB-INF/grails-app/i18n/messages.properties

for Spanish I think it would be called messages_es.properties

server/exp/webapp/WEB-INF/grails-app/i18n/messages_es.properties

This is the default:

# date format used in content of All Events list items
jobslist.date.format=M/d/yy h:mm a
jobslist.date.format.ko=M/DD/YY h:mm a

The first is the Java date format (https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html), used in some pages, and the second is the Moment.js format (http://momentjs.com/docs/#/displaying/format/) used in other places (like Activity tabs on job pages).


If you do create a new messages file, please submit it as a pull request!  add it to this directory: https://github.com/rundeck/rundeck/tree/development/rundeckapp/grails-app/i18n

--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/f65cbe0b-392e-4660-b7b7-28551b8e1462%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

danifr

unread,
Jul 15, 2015, 11:18:46 AM7/15/15
to rundeck...@googlegroups.com
Hi,

I've playing with the different formats and this is the one that I believe adjusts better to the European date format.


# date format used in content of All Events list items
jobslist.date.format=dd/MM/yy HH:mm
jobslist.date.format.ko=DD/MM/YY HH:mm
jobslist.running.format.ko=HH:mm

My initial idea was to modify only these values. Do you want me to create a new messages file with just these changes?
Thanks for your help,
Daniel.

Greg Schueler

unread,
Jul 15, 2015, 11:24:34 AM7/15/15
to rundeck...@googlegroups.com
Yes that would be great, thanks

-- 
Greg
Reply all
Reply to author
Forward
0 new messages