Ignore:
Timestamp:
03/02/10 08:03:10 (15 years ago)
Author:
Nicholas Riley
Message:

Don't die if Date::Manip fails to parse a date.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/Source/ParseDate.m

    r367 r617  
    4242    }
    4343   
    44     NSString *temp = [[NSString alloc] initWithFormat: @"UnixDate(q|%@|, '%%q')", input];
     44    NSString *temp = [[NSString alloc] initWithFormat: @"my $s = eval {UnixDate(q|%@|, '%%q')}; warn $@ if $@; $s", input];
    4545    // NSLog(@"%@", temp);
    46     SV *d = eval_pv([temp UTF8String], TRUE);
     46    SV *d = eval_pv([temp UTF8String], FALSE);
    4747    [temp release];
    4848    if (d == NULL) return nil;
Note: See TracChangeset for help on using the changeset viewer.