Skip to content

Commit

Permalink
Fixed missing 'week' component
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Belkevich committed Feb 25, 2015
1 parent 0c7b4dd commit 5a58ed8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Pod/NSDate+Components.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ - (NSDateComponents *)dateComponentsDateTime

- (NSDateComponents *)dateComponentsWeekTime
{
NSUInteger components = (NSCalendarUnitWeekOfMonth | NSCalendarUnitWeekday |
NSCalendarUnitWeekdayOrdinal | NSCalendarUnitWeekOfYear |
NSCalendarUnitYear | NSCalendarUnitYearForWeekOfYear |
NSCalendarUnitHour | NSCalendarUnitMinute | NSCalendarUnitSecond);
NSUInteger components = (NSCalendarUnitWeekOfMonth | NSCalendarUnitWeekOfYear |
NSCalendarUnitWeekday | NSCalendarUnitYear |
NSCalendarUnitYearForWeekOfYear | NSCalendarUnitHour |
NSCalendarUnitMinute | NSCalendarUnitSecond);
return [self dateComponents:components];
}

Expand Down
2 changes: 2 additions & 0 deletions Spec/NSDateCalendar.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = NSDateCalendar/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand All @@ -536,6 +537,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = NSDateCalendar/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand Down

0 comments on commit 5a58ed8

Please sign in to comment.