From f79207e55f71f34057b49dfa46439e72e47ac15d Mon Sep 17 00:00:00 2001 From: artragis Date: Mon, 28 Dec 2015 14:05:24 +0100 Subject: [PATCH] Add Predifined datetime format that jqueryUI datepicker supports --- jquery.datetimepicker.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index b2fe8c6..8d45c83 100644 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -613,7 +613,16 @@ // Override Parse and Format Library entities Date.monthNames = default_options.i18n[globalLocale].months; Date.dayNames = default_options.i18n[globalLocale].dayOfWeek; - } + }, + RFC_2822: 'D, d M Y H:i:s O', + ATOM: 'Y-m-d\TH:i:sP', + ISO_8601: 'Y-m-d\TH:i:sO', + RFC_822: 'D, d M y H:i:s O', + RFC_850: 'l, d-M-y H:i:s T', + RFC_1036: 'D, d M y H:i:s O', + RFC_1123: 'D, d M Y H:i:s O', + RSS: 'D, d M Y H:i:s O', + W3C: 'Y-m-d\TH:i:sP' }; // fix for ie8