Гость
12 Май 2013 17:20

Hi there,

I am using cobalt 8 with great satisfaction, but I only come across the following 'problem':

When somebody is submitting an item and setting the expiery date not in the right format (yyyy-mm-dd hh-mm-ss). So if they, for example put "94" as minutes, in stead of "49" they'll get this error:

I get an error 0: DateTime::__construct() [datetime.--construct]: Failed to parse time string (2013-05-22 23:96:00) at position 15 (6): Double time specification.

Is there a way to get a nice notification istead of this error?

by

A) make a date and time field in my item and have the date and time put in the 'extime' field of this item as well.

OR

B) get the date and time string checked when submitting.

(if possible I would prefer option A, because than I can use the expiery date to sort my items, quite important for me)

Thanks a lot for your help!

Alwin

Последние изменения: 02 Март 2014


Sackgesicht VIP
Total posts: 1,636
12 Май 2013 19:22

Alwin,

please check the date and time field. It will exactly doe what you describe under Option A).

See the field parameter configuration :


Гость
13 Май 2013 02:09

Thats so awesome! I didn't see it. Million thanks for this great function.

Alwin

Работает на Cobalt