Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

Allure Report time is incorrect/wrong #667

Closed
jonsteuwart opened this issue Sep 8, 2015 · 20 comments
Closed

Allure Report time is incorrect/wrong #667

jonsteuwart opened this issue Sep 8, 2015 · 20 comments

Comments

@jonsteuwart
Copy link

I am using C# with NUnit. The Allure report time is 5 hrs ahead of my local time. Does anyone have this issue or know the cause?

@baev
Copy link
Member

baev commented Sep 23, 2015

@jonsteuwart sorry for the delay

The Allure report time is 5 hrs ahead of my local time

Could you please specify the page you are talking about

@pdoggyster
Copy link

I'v also but it is 2 hrs ahead of my local time. I'm in the UTC+1 timezone.
I ran my test example at 10:00 but when I generated the allure report and check it then it shows that start time 12:00

@baev
Copy link
Member

baev commented Sep 25, 2015

@pdoggyster is it time from total widget you are talking about?

@pdoggyster
Copy link

The start time in the -testsuite.xml

1443172706998 ->
currentmillis.com ->
to UTC time and date: Fri Sep 25 2015 09:18:26
to local time and date: Fri Sep 25 2015 11:18:26

A local time appears in the riport but the UTC would be good.
2015-09-25 15_20_09-current millis - convert milliseconds to date utc time

@just-boris
Copy link
Contributor

You see times in report with the same timezone that you see time at system clock. If you don't, this can be a bug.

@pdoggyster @jonsteuwart Does the time in report match with time at your system clock?

@pdoggyster
Copy link

No, the report time doesn't match at my system clock. The report time is 2 hrs ahead of my system time.

@just-boris
Copy link
Contributor

That's weird.

@pdoggyster Could you please execute in browser console:

new Date()

And show me the result and system time at that moment?

@pdoggyster
Copy link

See the picture:
2015-09-28 11_18_59

@just-boris
Copy link
Contributor

Well, there is nothing mysterious, xml in the report just has timestamp from the future :)

Are you generating report of some remote server? What time and zone is set there?

@pdoggyster
Copy link

No, I generated this machine, and I run the test same machine.

@just-boris
Copy link
Contributor

What does it mean? Are you using virtual box or something?

@pdoggyster
Copy link

Yes, this is a virtual machine (azure machine)

@just-boris
Copy link
Contributor

Well, so I guessed that the machine has wrong time settings. Can you check current time there?

@pdoggyster
Copy link

11:35?:)

@pdoggyster
Copy link

The time is good on the machine.

@just-boris
Copy link
Contributor

Well, but what is UNIX-time (in milliseconds) is there?
Found that allure-nunit uses this code to get current time

DateTime.Now.ToUnixEpochTime();

@pdoggyster
Copy link

2015-09-28 12_00_14-

@just-boris
Copy link
Contributor

Well, are you sure that .NET framework use the same mechanism for getting current time?

@pdoggyster
Copy link

I think this problem solved: allure-framework/allure-csharp-commons@db1ee73

So If this fix will be released then I think that this problem will resolve.

@baev
Copy link
Member

baev commented Jan 14, 2016

I guess we can close it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants