From 1a588559b833d6021a14e7f9d979f7d7c47093a9 Mon Sep 17 00:00:00 2001 From: snydesc Date: Wed, 1 Apr 2015 10:53:52 -0400 Subject: [PATCH] Format should be applied to option value The format should be applied to the value being set. --- jquery.datetimepicker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index 857660b..ec46909 100644 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -871,10 +871,10 @@ } if (options.value) { - if (input && input.val) { - input.val(options.value); - } _xdsoft_datetime.setCurrentTime(options.value); + if (input && input.val) { + input.val(_xdsoft_datetime.str); + } } if (isNaN(options.dayOfWeekStart)) {