Forum OpenACS Q&A: Re: 4.6.3 ecommerce belches request-error on ugly_date

Collapse
Posted by Torben Brosten on
Hmm.. I will try the solution[6] in this thread[7]:

6. https://openacs.org/forums/message-view?message_id=33632
7. https://openacs.org/forums/message-view?message_id=33569

but, how to apply it?

Hints appreciated. =)

Collapse
Posted by Bart Teeuwisse on
Torben,

that would be a solution. Another maybe less involved is to apply the following (untested) patch:

Index: ecommerce-utilities-procs.tcl
===================================================================
RCS file: /cvsroot/openacs-4/packages/ecommerce/tcl/ecommerce-utilities-procs.tcl,v
retrieving revision 1.12
diff -r1.12 ecommerce-utilities-procs.tcl
568a569
<blockquote>    regsub -- {\.[0-9]+$} $ugly_date "" ugly_date
</blockquote>
590a592
<blockquote>    regsub -- {\.[0-9]+$} $ugly_date "" ugly_date
</blockquote>

This will strip the sub-second portion from the timestamp.

/Bart