Fix date timezones to avoid operation saved on the day before the one entered.

This commit is contained in:
Alexis Lahouze 2017-07-05 09:35:09 +02:00
parent 4fed3c9320
commit 7ace852f43
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@
<div class="col-sm-8">
<input class="form-control" id="operation-date" name="operation_date"
type="text" ng-model="$ctrl.operation.operation_date"
bs-datepicker data-date-format="yyyy-MM-dd"
bs-datepicker data-date-format="yyyy-MM-dd" data-timezone="UTC"
placeholder="Operation date">
</div>
</div>

View File

@ -27,7 +27,7 @@
<div class="col-sm-8">
<input class="form-control" id="start-date" name="start_date"
type="text" ng-model="$ctrl.operation.start_date"
bs-datepicker data-date-format="yyyy-MM-dd"
bs-datepicker data-date-format="yyyy-MM-dd" data-timezone="UTC"
placeholder="Scheduled operation start date">
</div>
</div>
@ -37,7 +37,7 @@
<div class="col-sm-8">
<input class="form-control" id="stop-date" name="stop_date"
type="text" ng-model="$ctrl.operation.stop_date"
bs-datepicker data-date-format="yyyy-MM-dd"
bs-datepicker data-date-format="yyyy-MM-dd" data-timezone="UTC"
placeholder="Scheduled operation stop date">
</div>
</div>