Permalink
Browse files

Changed current sessions screen to respect the phones configured time…

… when querying sessions.
  • Loading branch information...
1 parent 3d59f56 commit ba3192fe50fee01fc01d72884cfbcb82a9c9317f Roy Clarkson committed Sep 29, 2010
Showing with 7 additions and 1 deletion.
  1. +7 −1 source/Classes/EventSessionController.m
@@ -31,7 +31,13 @@ + (BOOL)shouldRefreshFavorites
- (void)fetchCurrentSessionsByEventId:(NSString *)eventId;
{
- NSString *urlString = [[NSString alloc] initWithFormat:EVENT_SESSIONS_CURRENT_URL, eventId];
+ // request the sessions for the current day
+ NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
+ [dateFormatter setDateFormat:@"YYYY-MM-d"];
+ NSString *dateString = [dateFormatter stringFromDate:[NSDate date]];
+ [dateFormatter release];
+
+ NSString *urlString = [[NSString alloc] initWithFormat:EVENT_SESSIONS_BY_DAY_URL, eventId, dateString];
NSURL *url = [[NSURL alloc] initWithString:urlString];
[urlString release];

0 comments on commit ba3192f

Please sign in to comment.