From 318e836f8290c3167651bbe4f729144fb6165734 Mon Sep 17 00:00:00 2001 From: Rens Verhoeven Date: Wed, 18 Mar 2015 15:30:57 +0100 Subject: [PATCH] Fix for deprecation warning on AWKDateHelper --- Classes/AWKDateHelper.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/AWKDateHelper.m b/Classes/AWKDateHelper.m index eaccb51..83b0f12 100644 --- a/Classes/AWKDateHelper.m +++ b/Classes/AWKDateHelper.m @@ -1,6 +1,6 @@ // // AWKDateHelper.m -// Awkward Helpers +// AWKHelpers // // Created by Rens Verhoeven on 04-11-14. // Copyright (c) 2014 Awkward. All rights reserved. @@ -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 {