Skip to content

Commit 03df6b4

Browse files
authored
Merge pull request #14437 from iterate-ch/bugfix/GH-14413
Fix #14413.
2 parents 88aa52a + b473612 commit 03df6b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

osx/src/main/java/ch/cyberduck/ui/cocoa/controller/DuplicateFileController.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ public void loadBundle() {
6060
@Override
6161
public NSView getAccessoryView(final NSAlert alert) {
6262
final NSView view = super.getAccessoryView(alert);
63-
String proposal = MessageFormat.format(PreferencesFactory.get().getProperty("browser.duplicate.format"),
63+
final String proposal = MessageFormat.format(PreferencesFactory.get().getProperty("browser.duplicate.format"),
6464
FilenameUtils.getBaseName(selected.getName()),
65-
UserDateFormatterFactory.get().getShortFormat(System.currentTimeMillis(), false).replace(Path.DELIMITER, ':'),
65+
UserDateFormatterFactory.get().getShortFormat(System.currentTimeMillis(), false)
66+
.replace('/', '.')
67+
.replace(':', '.'),
6668
StringUtils.isNotBlank(selected.getExtension()) ? String.format(".%s", selected.getExtension()) : StringUtils.EMPTY);
6769
this.updateField(inputField, proposal);
6870
return view;

0 commit comments

Comments
 (0)