Skip to content

Commit

Permalink
TimeFormatter.GetPeriod: fixed copy/paste error
Browse files Browse the repository at this point in the history
Giannoudis committed May 24, 2017
1 parent 114ebff commit bb7cf89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TimePeriod/TimeFormatter.cs
Original file line number Diff line number Diff line change
@@ -406,7 +406,7 @@ public virtual string GetPeriod( DateTime start, DateTime end, TimeSpan duration
}

// show start date, end date and duration (optionally with the time part)
bool endHasTimeOfDay = TimeTool.HasTimeOfDay( start );
bool endHasTimeOfDay = TimeTool.HasTimeOfDay( end );
bool hasTimeOfDays = startHasTimeOfDay || endHasTimeOfDay;
string startPart = hasTimeOfDays ? GetDateTime( start ) : GetShortDate( start );
string endPart = hasTimeOfDays ? GetDateTime( end ) : GetShortDate( end );

0 comments on commit bb7cf89

Please sign in to comment.