terminal42 / contao-leads

Leads extension for Contao Open Source CMS; Store and manage form data with ease!
GNU Lesser General Public License v3.0
35 stars 24 forks source link

Dateiname mit ##datim## hängt nach Zeit was an #108

Closed zonky2 closed 3 years ago

zonky2 commented 3 years ago

Export als Excel Vorgabe für Dateiname: Umfrage Feedback ##datim##.xls Dateiname beim Export: Umfrage Feedback 25.03.2021 11 14.20211114.xls Exportdatum: 25.03.2021 11:14

fritzmg commented 3 years ago

I can't confirm this issue:

Custom file name Actual file name
foobar_##date##.xslx foobar_2021-03-25.xslx
foobar_##datim##.xlsx foobar_2021-03-25 11:30.xlsx1

1 This actually leads to an error on Windows, since : is not allowed in file paths. But that's expected.

@zonky2 what is your contao.localconfig.datimFormat setting?

zonky2 commented 3 years ago

d.m.Y H:i

fritzmg commented 3 years ago

Couldn't reproduce it with that either - but may be there are platform differences.

zonky2 commented 3 years ago

When configuring for the first time, I had not yet specified an extension - if this is missing, the number thing is attached under windows.

fritzmg commented 3 years ago

In Windows you cannot use ##datim## with d.m.Y H:i. Does the same behavior occur with a different datim format or ##date##?

zonky2 commented 3 years ago

maybe the tool should append the extension automatically