diff options
author | Abhi Beckert <abhi@abhibeckert.com> | 2017-08-25 10:19:15 +1000 |
---|---|---|
committer | Abhi Beckert <abhi@abhibeckert.com> | 2017-08-25 10:19:15 +1000 |
commit | ff0e2a82ef4452abcb407449f82fbefaac323b5d (patch) | |
tree | cfd6e55b4954d2fb495133b5d3a745d9e63db211 /Source/SPExportFilenameUtilities.m | |
parent | 2e83222c6926e4149af69705cf91867d963f9e53 (diff) | |
parent | 0625044f52367c2e5778c326f6ca3f4fe3bdcc78 (diff) | |
download | sequelpro-ff0e2a82ef4452abcb407449f82fbefaac323b5d.tar.gz sequelpro-ff0e2a82ef4452abcb407449f82fbefaac323b5d.tar.bz2 sequelpro-ff0e2a82ef4452abcb407449f82fbefaac323b5d.zip |
Merge remote-tracking branch 'sequelpro/master'
Diffstat (limited to 'Source/SPExportFilenameUtilities.m')
-rw-r--r-- | Source/SPExportFilenameUtilities.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/SPExportFilenameUtilities.m b/Source/SPExportFilenameUtilities.m index 69b8f786..17e01e73 100644 --- a/Source/SPExportFilenameUtilities.m +++ b/Source/SPExportFilenameUtilities.m @@ -126,6 +126,7 @@ [SPExportFileNameTokenObject tokenWithId:SPFileNameMonthTokenName], [SPExportFileNameTokenObject tokenWithId:SPFileNameDayTokenName], [SPExportFileNameTokenObject tokenWithId:SPFileNameTimeTokenName], + [SPExportFileNameTokenObject tokenWithId:SPFileName24HourTimeTokenName], [SPExportFileNameTokenObject tokenWithId:SPFileNameFavoriteTokenName], (tableObject = [SPExportFileNameTokenObject tokenWithId:SPFileNameTableTokenName]), nil @@ -296,6 +297,9 @@ [dateFormatter setTimeStyle:NSDateFormatterShortStyle]; [string appendString:[dateFormatter stringFromDate:[NSDate date]]]; } + else if ([tokenContent isEqualToString:SPFileName24HourTimeTokenName]) { + [string appendString:[[NSDate date] descriptionWithCalendarFormat:@"%H:%M:%S" timeZone:nil locale:nil]]; + } else if ([tokenContent isEqualToString:SPFileNameFavoriteTokenName]) { [string appendStringOrNil:[tableDocumentInstance name]]; } |