From 870a5daf24c165069fe6f546bb3710f9b3880538 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Fri, 10 Jan 2014 17:28:27 +0100 Subject: webui: Datetime parsing and formatting this patch implements: - output_formatter in field. It should be used in par with formatter. Formatter serves for datasource->widget conversion, output_formatter for widget->datasource format conversion. - datetime module which parses/format strings in subset of ISO 8601 and LDAP generalized time format to Date. - utc formatter replaced with new datetime formatter - datetime_validator introduced - new datetime field, extension of text field, which by default uses datetime formatter and validator Dojo was regenerated to include dojo/string module https://fedorahosted.org/freeipa/ticket/4194 Reviewed-By: Adam Misnyovszki --- ipalib/plugins/internal.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ipalib/plugins/internal.py') diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py index 92a79840c..41732d670 100644 --- a/ipalib/plugins/internal.py +++ b/ipalib/plugins/internal.py @@ -695,6 +695,7 @@ class i18n_messages(Command): "undo_all": _("undo all"), "validation": { "error": _("Text does not match field pattern"), + "datetime": _("Must be an UTC date/time value (e.g., \"2014-01-20 17:58:01Z\")"), "decimal": _("Must be a decimal number"), "integer": _("Must be an integer"), "ip_address": _('Not a valid IP address'), -- cgit