Skip to content

Commit

Permalink
Include time on Excel export
Browse files Browse the repository at this point in the history
  • Loading branch information
programcsharp committed Aug 12, 2017
1 parent 58b0f55 commit 241747b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build/CommonAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.8.5")]
[assembly: AssemblyFileVersion("1.8.5")]
[assembly: AssemblyVersion("1.8.6")]
[assembly: AssemblyFileVersion("1.8.6")]
//[assembly: AssemblyInformationalVersion("1.4.5-editlyalpha2")]
2 changes: 2 additions & 0 deletions Griddly.Mvc/GriddlyExcelResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public override void ExecuteResult(ControllerContext context)
{
if (columns[x].Format == "d")
cell.Style.Numberformat.Format = "mm/dd/yyyy";
else
cell.Style.Numberformat.Format = "mm/dd/yyyy hh:mm";

cell.Style.HorizontalAlignment = ExcelHorizontalAlignment.Right;
}
Expand Down

0 comments on commit 241747b

Please sign in to comment.