Martin Stoufer

Show:

What's happening?

  • Comment: ResultSet asDate method returning GMT rectified date

    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

  • Comment: Empty login credentials cause infinite loop / logs fill

    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

  • ResultSet asDate method returning GMT rectified date

    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

About Me

  • 2001-06-12 (8 years ago)
  • 243169
  • mcstoufer (My Site)
  • Martin Stoufer

Send me a message