diff options
author | stuconnolly <stuart02@gmail.com> | 2009-04-15 16:28:34 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-04-15 16:28:34 +0000 |
commit | a279a220beb7cdb6c4988bb531a98f4ff4eebb13 (patch) | |
tree | 49ca0a4441235f20b262eb8725aa3a22533d98ed /Source | |
parent | cd356f49ebb3aa23c90205f721a00690f7b34e45 (diff) | |
download | sequelpro-a279a220beb7cdb6c4988bb531a98f4ff4eebb13.tar.gz sequelpro-a279a220beb7cdb6c4988bb531a98f4ff4eebb13.tar.bz2 sequelpro-a279a220beb7cdb6c4988bb531a98f4ff4eebb13.zip |
Fix for issue #173. Change export filename date format to YYYY-MM-DD and remove '_dump' and spaces from filename.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/TableDump.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/TableDump.m b/Source/TableDump.m index 5d1cb19e..b32c1fae 100644 --- a/Source/TableDump.m +++ b/Source/TableDump.m @@ -118,13 +118,13 @@ NSSavePanel *savePanel = [NSSavePanel savePanel]; [savePanel setAllowsOtherFileTypes:YES]; [savePanel setExtensionHidden:NO]; - NSString *currentDate = [[NSDate date] descriptionWithCalendarFormat:@"%d.%m.%Y" timeZone:nil locale:nil]; + NSString *currentDate = [[NSDate date] descriptionWithCalendarFormat:@"%Y-%m-%d" timeZone:nil locale:nil]; switch ( tag ) { case 5: // export dump [self reloadTables:self]; - file = [NSString stringWithFormat:@"%@_dump %@.sql", [tableDocumentInstance database], currentDate]; + file = [NSString stringWithFormat:@"%@_%@.sql", [tableDocumentInstance database], currentDate]; [savePanel setRequiredFileType:@"sql"]; [savePanel setAccessoryView:exportDumpView]; contextInfo = @"exportDump"; |