Skip to content

Commit

Permalink
Fix for deprecation warning on AWKDateHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
renssies committed Mar 18, 2015
1 parent 37baa06 commit 318e836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/AWKDateHelper.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// AWKDateHelper.m
// Awkward Helpers
// AWKHelpers
//
// Created by Rens Verhoeven on 04-11-14.
// Copyright (c) 2014 Awkward. All rights reserved.
Expand Down Expand Up @@ -47,7 +47,7 @@ - (BOOL)isFutureDate {
}

- (NSDate *)midnightDate {
return [[NSCalendar autoupdatingCurrentCalendar] dateFromComponents:[[NSCalendar currentCalendar] components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit) fromDate:self]];
return [[NSCalendar autoupdatingCurrentCalendar] dateFromComponents:[[NSCalendar currentCalendar] components:(NSCalendarUnitWeekOfYear | NSCalendarUnitMonth | NSCalendarUnitDay) fromDate:self]];
}

+ (NSDate *)tommorowDate {
Expand Down

0 comments on commit 318e836

Please sign in to comment.