Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 6ebb668

Browse files
Updating property name
1 parent 13286c2 commit 6ebb668

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/GitHub.Api/Git/GitLogEntry.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public string PrettyTimeString
3333
{
3434
get
3535
{
36-
DateTimeOffset now = DateTimeOffset.Now, relative = TimeValue.ToLocalTime();
36+
DateTimeOffset now = DateTimeOffset.Now, relative = Time.ToLocalTime();
3737

3838
return String.Format("{0}, {1:HH}:{1:mm}",
3939
relative.DayOfYear == now.DayOfYear
@@ -43,7 +43,7 @@ public string PrettyTimeString
4343
}
4444

4545
[NonSerialized] public DateTimeOffset? timeValue;
46-
public DateTimeOffset TimeValue
46+
public DateTimeOffset Time
4747
{
4848
get
4949
{
@@ -57,7 +57,7 @@ public DateTimeOffset TimeValue
5757
}
5858

5959
[NonSerialized] public DateTimeOffset? commitTimeValue;
60-
public DateTimeOffset? CommitTimeValue
60+
public DateTimeOffset? CommitTime
6161
{
6262
get
6363
{
@@ -89,7 +89,7 @@ public override string ToString()
8989
sb.AppendLine(String.Format("MergeB: {0}", MergeB));
9090
sb.AppendLine(String.Format("AuthorName: {0}", AuthorName));
9191
sb.AppendLine(String.Format("AuthorEmail: {0}", AuthorEmail));
92-
sb.AppendLine(String.Format("Time: {0}", TimeValue.ToString()));
92+
sb.AppendLine(String.Format("Time: {0}", Time.ToString()));
9393
sb.AppendLine(String.Format("Summary: {0}", Summary));
9494
sb.AppendLine(String.Format("Description: {0}", Description));
9595
return sb.ToString();

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/HistoryView.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public void OnEmbeddedGUI()
367367
scroll = GUILayout.BeginScrollView(scroll);
368368
if (lastScroll != scroll && !updated)
369369
{
370-
scrollTime = history[historyStartIndex].TimeValue;
370+
scrollTime = history[historyStartIndex].Time;
371371
scrollOffset = scroll.y - historyStartIndex * EntryHeight;
372372
useScrollTime = true;
373373
}
@@ -507,7 +507,7 @@ private void OnLogUpdate(IEnumerable<GitLogEntry> entries)
507507
double closestDifference = Mathf.Infinity;
508508
for (var index = 0; index < history.Count; ++index)
509509
{
510-
var diff = Math.Abs((history[index].TimeValue - scrollTime).TotalSeconds);
510+
var diff = Math.Abs((history[index].Time - scrollTime).TotalSeconds);
511511
if (diff < closestDifference)
512512
{
513513
closestDifference = diff;

src/tests/TestUtils/Helpers/AssertExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public static void AssertEqual(this GitLogEntry gitLogEntry, GitLogEntry other)
2222
gitLogEntry.Description.Should().Be(other.Description);
2323
gitLogEntry.TimeString.Should().Be(other.TimeString);
2424
gitLogEntry.CommitTimeString.Should().Be(other.CommitTimeString);
25-
gitLogEntry.TimeValue.Should().Be(other.TimeValue);
26-
gitLogEntry.CommitTimeValue.Should().Be(other.CommitTimeValue);
25+
gitLogEntry.Time.Should().Be(other.Time);
26+
gitLogEntry.CommitTime.Should().Be(other.CommitTime);
2727
}
2828

2929
public static void AssertNotEqual(this GitLogEntry gitLogEntry, GitLogEntry other)

0 commit comments

Comments
 (0)