chokkarg / worktime

Automatically exported from code.google.com/p/worktime
0 stars 0 forks source link

"Auto close 60s gap" is not working correctly #104

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The feature "Auto close 60s gap' that can be enabled in the preferences -> 
"Time Registrations".

Then if you have a time registration running that you want to close just wait 
till the current minute is at 30 seconds.

The stop the time registration.

Now wait until the minute changes, and then start a new time registration.

You will see that, while the time between the two time registrations (the end 
en the begining) is not more than 60s, the gap is not automatically closed!

Original issue reported on code.google.com by dirkvran...@gmail.com on 5 Apr 2012 at 6:05

GoogleCodeExporter commented 8 years ago
If in the 'date time' preferences you have set time precision to minutes both 
the seconds and the milliseconds are set to 0. Meaning that the duration 
between the end of the previous TR and the start of the new TR (if overlapping 
over a minute) is always 60s while it actually could be 49s...

So I have now created a separate method for calculating the duration without 
time precision applied.

Original comment by dirkvran...@gmail.com on 7 May 2012 at 12:16

GoogleCodeExporter commented 8 years ago

Original comment by dirkvran...@gmail.com on 15 May 2012 at 9:30

GoogleCodeExporter commented 8 years ago

Original comment by dirkvran...@gmail.com on 15 May 2012 at 9:38

GoogleCodeExporter commented 8 years ago

Original comment by dirkvran...@gmail.com on 15 May 2012 at 9:50

GoogleCodeExporter commented 8 years ago

Original comment by dirkvran...@gmail.com on 15 May 2012 at 9:55