I use an RSS Parser that is listing times wrong. Eastern Standard Time shows 1 hour later than what the actual time of the RSS Event is. So, I am trying to figure out how I can adjust this in code, so that in the cellForIndexAtPathRow method of TableView, it will show correct time. Here is the code I am using:
The entry.articleDate comes from the RSS Parser earlier which returns:
What do you think would be the best way to take the HH part of the string only, and subtract 1 off of it?
Code:
NSDateFormatter * dateFormatter = [[[NSDateFormatter alloc] init] autorelease];
[dateFormatter setTimeStyle:NSDateFormatterMediumStyle];
[dateFormatter setDateStyle:NSDateFormatterMediumStyle];
NSString *articleDateString = [dateFormatter stringFromDate:entry.articleDate];
The entry.articleDate comes from the RSS Parser earlier which returns:
Code:
NSString *articleDateString = [item valueForChild:@"updated"];
NSDate *articleDate = [NSDate dateFromInternetDateTimeString:articleDateString formatHint:DateFormatHintRFC3339];
What do you think would be the best way to take the HH part of the string only, and subtract 1 off of it?