Browse files

* fixed bad calculation for UtcToday

* added *.dotCover and *.Resharper to .gitignore file
  • Loading branch information...
1 parent 04028c4 commit a9624c9fcb62ff709c8c2b2f38df2e36a10d6320 @bjorg bjorg committed Apr 12, 2012
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;
}
}

0 comments on commit a9624c9

Please sign in to comment.