Skip to content

Commit

Permalink
Merge pull request #25 from liuhaoyang/dev
Browse files Browse the repository at this point in the history
Fix 'Invalid Time: dd/MM/yyyy HH:mm:ss'
  • Loading branch information
liuhaoyang authored Feb 14, 2018
2 parents 2271ea0 + f3e2766 commit 448f711
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Butterfly.Web/Common/MappingProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public MappingProfile()

CreateMap<SpanReference, ReferenceViewModel>();

CreateMap<TraceHistogram, TraceHistogramViewModel>();
CreateMap<TraceHistogram, TraceHistogramViewModel>()
.ForMember(destination => destination.Time, option => option.MapFrom(target => target.Time.ToString("yyyy-MM-dd HH:mm:ss")));
}

private static long GetDuration(IEnumerable<Span> spans)
Expand Down

0 comments on commit 448f711

Please sign in to comment.