Permalink
Browse files

event log: some more occasions to force english date

  • Loading branch information...
1 parent ee66b0f commit 52a86730b7bb48a0ab50362213b6ee20c3c3f384 @hbons committed Dec 7, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 SparkleShare/SparkleEventLogController.cs
@@ -380,7 +380,7 @@ public string GetHistoryHTMLLog (List<SparkleChangeSet> change_sets, string file
"<td class='restore'>" +
"<a href='restore://" + change_set.Folder.Name + "/" +
change_set.Revision + "/" + change_set.User.Name + "/" +
- change_set.Timestamp.ToString ("MMM d H\\hmm") + "/" +
+ change_set.Timestamp.ToString ("MMM d H\\hmm", CultureInfo.InvariantCulture) + "/" +
file_path + "'>Restore&hellip;</a>" +
"</td>" +
"</tr>";
@@ -503,26 +503,26 @@ public string GetHTMLLog (List<SparkleChangeSet> change_sets)
day_entry = day_entry_html.Replace ("<!-- $day-entry-header -->",
"<span id='today' name='" +
- activity_day.Date.ToString ("dddd, MMMM d") + "'>" + "Today" +
+ activity_day.Date.ToString ("dddd, MMMM d", CultureInfo.InvariantCulture) + "'>" + "Today" +
"</span>");
} else if (yesterday.Day == activity_day.Date.Day &&
yesterday.Month == activity_day.Date.Month &&
yesterday.Year == activity_day.Date.Year) {
day_entry = day_entry_html.Replace ("<!-- $day-entry-header -->",
- "<span id='yesterday' name='" + activity_day.Date.ToString ("dddd, MMMM d") + "'>" +
+ "<span id='yesterday' name='" + activity_day.Date.ToString ("dddd, MMMM d", CultureInfo.InvariantCulture) + "'>" +
"Yesterday" +
"</span>");
} else {
if (activity_day.Date.Year != DateTime.Now.Year) {
day_entry = day_entry_html.Replace ("<!-- $day-entry-header -->",
- activity_day.Date.ToString ("dddd, MMMM d, yyyy"));
+ activity_day.Date.ToString ("dddd, MMMM d, yyyy", CultureInfo.InvariantCulture));
} else {
day_entry = day_entry_html.Replace ("<!-- $day-entry-header -->",
- activity_day.Date.ToString ("dddd, MMMM d"));
+ activity_day.Date.ToString ("dddd, MMMM d", CultureInfo.InvariantCulture));
}
}

0 comments on commit 52a8673

Please sign in to comment.