-
I have a user-level work around for this:
Get the date field back from the result set as a String:
NSString *strCreatedDate = [[NSString alloc] initWithFormat:@"%@ %@",
[[[[rs fieldByName:@"date_created"] asString] componentsSeparatedByString:@"."] objectAtIndex:0],
[self gmtTimeOffset]];
createdDate...
2008-09-15 20:12:09 UTC in ODBCKit
-
I modified my Controller class to fix this. It felt like the selector call and re-init of the login context was putting the app out of step with the display.
In the init:
login = [[ODBCLogin alloc]init];
Then:
-(void)getConnectionWithLogin {
[[NSApp mainWindow] setDelegate:self];
[login beginModalLoginForWindow:[NSApp mainWindow]];
}
With the callBack now coded as...
2008-09-12 22:28:01 UTC in ODBCKit
-
In an Oracle DB, I have a record whose date field is:
Monday, August 23, 2004, 12:00:00 AM PDT
However after I make the call:
lastModDate = [NSDate new];
lastModDate = [[rs fieldByName:@"date_last_mod"] asDate];
lastModDate comes up as:
2004-08-22 17:00:00 -0700
It appears that the date/time is being rectified to GMT w/o the program's knowledge.
This should not...
2008-09-12 22:24:39 UTC in ODBCKit