lib/date_picker/styles/bootstrap.rb in date_picker-0.0.5 vs lib/date_picker/styles/bootstrap.rb in date_picker-0.0.6

- old
+ new

@@ -13,11 +13,11 @@ :moment end def template() %{ <div id="<%= input_id %>_container" class="input-group"> - <div class="input-group-addon"> + <div class="input-group-addon" style="cursor: pointer"> <span class="glyphicon glyphicon-calendar"></span> </div> <%= input_html %> </div> <input id="<%= input_id %>_hidden" type="hidden" value="<%= formatted_value %>" name="<%= name %>"/> @@ -28,10 +28,10 @@ format: <%= format.to_json %> })) .on('dp.change', function(e) { $('#<%= input_id %>_hidden').val(e.date.format('<%= data_format %>')); }).data('DateTimePicker'); - <% if time %> datepicker.date(moment.utc(new Date(<%= time %>))); <% end %> + <% if time %> datepicker.date(moment(new Date(<%= time %>))); <% end %> })(); </script> } end end \ No newline at end of file