Skip to content

Commit b473612

Browse files
committed
Fix #14413.
1 parent 7b7b07d commit b473612

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)