copy templates from Pc to another #tools #templates


Wolfgang Schamm-Haustein
 

Hallo,
Using tt2
after copy my templates to another pc
using ttree with build
these errormessage come up.

date error - bad time/date string:  expects 'h:m:s d:m:y'  got: ''

On the first pc ist works.


Nicolas R.
 

It seems to come from Template::Plugin::Date where time cannot be parsed and seems to be an empty string in your case.
Any chance you could check the `date.format` calls in your template and give us an extract to understand how it's possible?

Alternatively you can add some debug to Template/Plugin/Date.pm file to have a better understanding.

Hope this helps
sincerely
nicolas


Wolfgang Schamm-Haustein
 

Hallo Nicolas, thanks for your reply.
some code:

[% WRAPPER 'article/xxxx/yyyy' %]

[% USE date, format => '%d.%b.%Y', locale => 'de_DE' %]
[% erstellt="erstellt " %][% datum="30.Dez.2017" %]
[% akt="aktualisiert "%][% akt_datum=date.format(filemod_time,
'%d.%b.%Y %H:%M') %]

[% END %]
this code works for my webpage, the error occur only while executing die
build script
Comment out - same error
[%# USE date, format => '%d.%b.%Y', locale => 'de_DE' %]
[%# erstellt="erstellt " %][% datum="30.Dez.2017" %]
[%# akt="aktualisiert "%][% akt_datum=date.format(filemod_time,
'%d.%b.%Y %H:%M') %]

[%# END %]

thanks
wolfgang

Am 25.09.20 um 21:38 schrieb Nicolas R.:

It seems to come from Template::Plugin::Date where time cannot be parsed
and seems to be an empty string in your case.
Any chance you could check the `date.format` calls in your template and
give us an extract to understand how it's possible?

Alternatively you can add some debug to Template/Plugin/Date.pm file to
have a better understanding.

Hope this helps
sincerely
nicolas
--
///
(..)
----ooO-\/-Ooo-----------------------

Wolfgang Schamm-Haustein
Talweg 3
53474 Bad Neuenahr-Ahrweiler

mobil 0163 673 1594
mail schamm-haustein@...
web grunds.goip.de


Nicolas R.
 

I think your mistake is to use ` format =>` instead of ` format =`
you want to use
[% USE date(format = '%d.%b.%Y', locale = 'de_DE') %]

let me know if this works for you
nicolas

On Fri, Sep 25, 2020 at 1:59 PM Wolfgang Schamm-Haustein <schamm-haustein@...> wrote:
Hallo Nicolas, thanks for your reply.
some code:

[% WRAPPER 'article/xxxx/yyyy' %]

[% USE date, format => '%d.%b.%Y', locale => 'de_DE' %]
 [% erstellt="erstellt " %][% datum="30.Dez.2017" %]
 [% akt="aktualisiert "%][% akt_datum=date.format(filemod_time,
'%d.%b.%Y %H:%M') %]

[% END %]
this code works for my webpage, the error occur only while executing die
build script
Comment out - same error
[%# USE date, format => '%d.%b.%Y', locale => 'de_DE' %]
 [%# erstellt="erstellt " %][% datum="30.Dez.2017" %]
 [%# akt="aktualisiert "%][% akt_datum=date.format(filemod_time,
'%d.%b.%Y %H:%M') %]

[%# END %]

thanks
wolfgang

Am 25.09.20 um 21:38 schrieb Nicolas R.:
> It seems to come from Template::Plugin::Date where time cannot be parsed
> and seems to be an empty string in your case.
> Any chance you could check the `date.format` calls in your template and
> give us an extract to understand how it's possible?
>
> Alternatively you can add some debug to Template/Plugin/Date.pm file to
> have a better understanding.
>
> Hope this helps
> sincerely
> nicolas
>

--
                ///
               (..)
        ----ooO-\/-Ooo-----------------------

        Wolfgang Schamm-Haustein
        Talweg 3
        53474 Bad Neuenahr-Ahrweiler

        mobil 0163 673 1594
        mail  schamm-haustein@...
        web   grunds.goip.de







Wolfgang Schamm-Haustein
 

you are right!
Thanks for your tip.
MfG

Wolfgang

Am 25.09.20 um 22:17 schrieb Nicolas R.:

I think your mistake is to use ` format =>` instead of ` format =`
you want to use
[% USE date(format = '%d.%b.%Y', locale = 'de_DE') %]

let me know if this works for you
nicolas

On Fri, Sep 25, 2020 at 1:59 PM Wolfgang Schamm-Haustein
<schamm-haustein@... <mailto:schamm-haustein@...>> wrote:

Hallo Nicolas, thanks for your reply.
some code:

[% WRAPPER 'article/xxxx/yyyy' %]

[% USE date, format => '%d.%b.%Y', locale => 'de_DE' %]
 [% erstellt="erstellt " %][% datum="30.Dez.2017" %]
 [% akt="aktualisiert "%][% akt_datum=date.format(filemod_time,
'%d.%b.%Y %H:%M') %]

[% END %]
this code works for my webpage, the error occur only while executing die
build script
Comment out - same error
[%# USE date, format => '%d.%b.%Y', locale => 'de_DE' %]
 [%# erstellt="erstellt " %][% datum="30.Dez.2017" %]
 [%# akt="aktualisiert "%][% akt_datum=date.format(filemod_time,
'%d.%b.%Y %H:%M') %]

[%# END %]

thanks
wolfgang

Am 25.09.20 um 21:38 schrieb Nicolas R.:
> It seems to come from Template::Plugin::Date where time cannot be
parsed
> and seems to be an empty string in your case.
> Any chance you could check the `date.format` calls in your
template and
> give us an extract to understand how it's possible?
>
> Alternatively you can add some debug to Template/Plugin/Date.pm
file to
> have a better understanding.
>
> Hope this helps
> sincerely
> nicolas
>

--
                ///
               (..)
        ----ooO-\/-Ooo-----------------------

        Wolfgang Schamm-Haustein
        Talweg 3
        53474 Bad Neuenahr-Ahrweiler

        mobil 0163 673 1594
        mail  schamm-haustein@...
<mailto:schamm-haustein@...>
        web   grunds.goip.de <http://grunds.goip.de>






--
///
(..)
----ooO-\/-Ooo-----------------------

Wolfgang Schamm-Haustein
Talweg 3
53474 Bad Neuenahr-Ahrweiler

mobil 0163 673 1594
mail schamm-haustein@...
web grunds.goip.de