Skip to content

Commit

Permalink
Returned to show today date
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliaksei-epam committed Oct 10, 2012
1 parent 60b5da2 commit e8f3f7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DayCalendar/DCViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ - (NSDateComponents*)putDayInfo {
[subView removeFromSuperview];
}
NSDate *currentDate = [NSDate date];
currentDate = [NSDate dateWithTimeIntervalSinceNow:-86400 * 100];
//currentDate = [NSDate dateWithTimeIntervalSinceNow:-86400 * 100];
NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
NSDateComponents *dateComponents = [calendar components:(NSYearCalendarUnit |
NSMonthCalendarUnit |
Expand Down Expand Up @@ -347,6 +347,7 @@ - (NSDateComponents*)putDayInfo {
NSString *nextPhaseText = [NSString stringWithFormat:NSLocalizedString(@"%@ will in %@", nil),nextMoonPhase.name, [formatter stringFromDate:nextDate]];
CGPoint nextPoint = moonPhaseLabel.frame.origin;
nextPoint.y += moonPhaseLabel.frame.size.height + MAGIC_NUMBER(4);

nextMoonPhaseLabel = [DCDayInfo astroLabelWithText:nextPhaseText
withFont:ASTROSUN_FONT_SIGN
withTextColor:[UIColor darkGrayColor]
Expand Down

0 comments on commit e8f3f7a

Please sign in to comment.