Commit c9cd768 1 parent 3aecadf commit c9cd768 Copy full SHA for c9cd768
File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -32,4 +32,8 @@ Add config file (now you can set hour per day)
32
32
33
33
## 0.5.5
34
34
35
- Add gif to document
35
+ Add gif to document
36
+
37
+ ## 0.5.6
38
+
39
+ Bugfix hour display
Original file line number Diff line number Diff line change 2
2
"name" : " csak-ext-timer" ,
3
3
"displayName" : " csak-ext-timer" ,
4
4
"description" : " If you want to know what time was spent for projects" ,
5
- "version" : " 0.5.5 " ,
5
+ "version" : " 0.5.6 " ,
6
6
"publisher" : " csakaszamok" ,
7
7
"engines" : {
8
8
"vscode" : " ^1.18.0"
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ class WordCounter {
100
100
101
101
if ( globalConfig . hoursperday && globalConfig . hoursperday > 0 ) {
102
102
days = Math . floor ( ( days * 24 + hours ) / globalConfig . hoursperday ) ; //8 hour per workday
103
+ hours = hours - ( days * 8 ) ;
103
104
return `${ days } day + ${ padding ( hours ) } :${ padding ( minutes ) } :${ padding ( seconds ) } ` ;
104
105
}
105
106
You can’t perform that action at this time.
0 commit comments