lib/iphoto_backup/cli.rb in iphoto_backup-1.0.1 vs lib/iphoto_backup/cli.rb in iphoto_backup-1.0.2

- old
+ new

@@ -56,10 +56,10 @@ if options[:'include-date-prefix'] && folder_name !~ /^\d{4}-\d{2}-\d{2} / album_date = nil each_image album_info do |image_info| next if album_date photo_interval = value_for_dictionary_key('DateAsTimerInterval', image_info).content.to_i - album_date = (IPHOTO_EPOCH + photo_interval).strftime('%Y-%d-%m') + album_date = (IPHOTO_EPOCH + photo_interval).strftime('%Y-%m-%d') end say "Automatically adding #{album_date} prefix to folder: #{folder_name}" folder_name = "#{album_date} #{folder_name}" end folder_name