Change input fields to be filled from UTC timestamps

git-svn-id: https://svn.eudat.eu/EUDAT/Services/MetaData/ckanext-datesearch@2719 68e52488-0a15-44bc-a314-416658652264
This commit is contained in:
Mikael Karlsson 2014-03-11 14:21:48 +00:00
parent 738f9f4687
commit 9f96c6dd55
2 changed files with 3 additions and 3 deletions

View File

@ -14,11 +14,11 @@ this.ckan.module('daterangepicker-module', function ($, _) {
// Populate the datepicker and hidden fields
if (param_start) {
$('input[name="start"]').val(moment(param_start).years());
$('input[name="start"]').val(moment.utc(param_start).years());
$('#ext_startdate').val(param_start);
}
if (param_end) {
$('input[name="end"]').val(moment(param_end).years());
$('input[name="end"]').val(moment.utc(param_end).years());
$('#ext_enddate').val(param_end);
}

View File

@ -6,7 +6,7 @@
{% resource 'ckanext-datesearch/bootstrap-datepicker.js' %}
{% resource 'ckanext-datesearch/daterangepicker-module.js' %}
{# This <section> is the date-range picker widget in the sidebar. #}
<!-- This <section> is the date-range picker widget in the sidebar. -->
<section class="module module-narrow module-shallow">
<h2 class="module-heading">
<i class="icon-medium icon-calendar"></i> {{ _('Filter by date') }}