You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2019/06/17 14:23:21 UTC

[airavata-django-portal] 08/11: AIRAVATA-2990 Removing hours/minutes from range dates

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git

commit 84617387690043dc64497ff49980cb30b73c0ea8
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Wed Jun 12 11:40:04 2019 -0400

    AIRAVATA-2990 Removing hours/minutes from range dates
    
    I was hitting some sort of bug when rolling over to the next
    minute only the fromTime would be updated.
---
 .../src/components/statistics/ExperimentStatisticsContainer.vue     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/django_airavata/apps/admin/static/django_airavata_admin/src/components/statistics/ExperimentStatisticsContainer.vue b/django_airavata/apps/admin/static/django_airavata_admin/src/components/statistics/ExperimentStatisticsContainer.vue
index 40dfc63..92d6057 100644
--- a/django_airavata/apps/admin/static/django_airavata_admin/src/components/statistics/ExperimentStatisticsContainer.vue
+++ b/django_airavata/apps/admin/static/django_airavata_admin/src/components/statistics/ExperimentStatisticsContainer.vue
@@ -256,7 +256,7 @@ export default {
       dateConfig: {
         mode: "range",
         wrap: true,
-        dateFormat: "Y-m-d H:i",
+        dateFormat: "Y-m-d",
         maxDate: new Date()
       },
       usernameFilterEnabled: false,
@@ -437,8 +437,8 @@ export default {
     },
     updateDateRange() {
       this.dateRange = [
-        moment(this.fromTime).format("YYYY-MM-DD HH:mm"),
-        moment(this.toTime).format("YYYY-MM-DD HH:mm")
+        moment(this.fromTime).format("YYYY-MM-DD"),
+        moment(this.toTime).format("YYYY-MM-DD")
       ];
     },
     daysAgo(days) {