Skip to content

Start date and end date are displayed incorrectly due to system time zone #416

@securitytime

Description

@securitytime

Issue Type

Bug Report

Faraday version

Faraday v3.12 (deb)

Component Name

WebGui

Steps to reproduce

To reproduce this issue, I installed Faraday on a Ubuntu Desktop 20.04.1. My time zone is set to Europe/Berlin:

tux@ubuntu:~$ timedatectl 
               Local time: Thu 2020-10-15 15:40:14 CEST
           Universal time: Thu 2020-10-15 13:40:14 UTC 
                 RTC time: Thu 2020-10-15 13:40:14     
                Time zone: Europe/Berlin (CEST, +0200) 
System clock synchronized: no                          
              NTP service: inactive                    
          RTC in local TZ: no

I use Firefox on this Ubuntu system to access Faraday via http://127.0.0.1:5985.

Now in Faraday I created a new workspace with a start date of 10/01/2020 and an end date of 10/31/2020:

screenshot01

Now when I select this workspace then the start date is displayed as 09/30/2020 and the end date as 10/30/2020:

screenshot02

I believe this has something to do with the time zone. When I set the system time zone to UTC then the dates are displayed correctly.

Expected results

The dashboard should show the correct dates when using a time zone other than UTC.

OS

Provide information on your operating system. Example:

tux@ubuntu:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions