Skip to content
This repository was archived by the owner on Jul 27, 2022. It is now read-only.

Commit b44c758

Browse files
author
Nicolas Teichtweier
committed
updated to display total hours, added icon and fancy stuff
1 parent 8616387 commit b44c758

File tree

8 files changed

+13027
-1
lines changed

8 files changed

+13027
-1
lines changed

JiraTimeTracker/JTT.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private string GetWorkingTime()
8989
JsonConv conv = new JsonConv();
9090
RootObject decoderesult = conv.DecodeJsonToRootObject(queryresult);
9191
int timeinseconds = CalculateWorkingTimeInSeconds(decoderesult);
92-
return timeinseconds.ToString();
92+
return TimeSpan.FromSeconds(timeinseconds).TotalHours.ToString();
9393
}
9494
else
9595
{

JiraTimeTracker/JiraTimeTracker.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
<ErrorReport>prompt</ErrorReport>
3131
<WarningLevel>4</WarningLevel>
3232
</PropertyGroup>
33+
<PropertyGroup>
34+
<ApplicationIcon>The Mighty Potato.ico</ApplicationIcon>
35+
</PropertyGroup>
3336
<ItemGroup>
3437
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
3538
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
@@ -87,5 +90,8 @@
8790
<ItemGroup>
8891
<None Include="App.config" />
8992
</ItemGroup>
93+
<ItemGroup>
94+
<Content Include="The Mighty Potato.ico" />
95+
</ItemGroup>
9096
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
9197
</Project>
44.1 KB
Binary file not shown.
512 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
5+
</startup>
6+
<runtime>
7+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
8+
<dependentAssembly>
9+
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
10+
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
11+
</dependentAssembly>
12+
</assemblyBinding>
13+
</runtime>
14+
</configuration>

JiraTimeTracker/bin/Release/Newtonsoft.Json.xml

Lines changed: 10912 additions & 0 deletions
Large diffs are not rendered by default.

JiraTimeTracker/bin/Release/System.Net.Http.Formatting.xml

Lines changed: 2094 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)