Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* fixed bad calculation for UtcToday

* added *.dotCover and *.Resharper to .gitignore file
  • Loading branch information...
commit a9624c9fcb62ff709c8c2b2f38df2e36a10d6320 1 parent 04028c4
@bjorg bjorg authored
Showing with 3 additions and 3 deletions.
  1. +2 −0  .gitignore
  2. +1 −3 src/mindtouch.dream/system/datetimeutil.cs
View
2  .gitignore
@@ -24,3 +24,5 @@ src/*/*/test-results/*.xml
*.cache
*.pidb
*~
+*.dotCover
+*.Resharper
View
4 src/mindtouch.dream/system/datetimeutil.cs
@@ -42,9 +42,7 @@ public static class DateTimeUtil {
/// </summary>
public static DateTime UtcToday {
get {
- DateTime result = DateTime.Today.ToUniversalTime();
- result = result.AddHours(-result.Hour);
- return result;
+ return DateTime.UtcNow.Date;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.