You are here

Random date in "start_time"

2 posts / 0 new
Last post
strilen
Offline
Donator
Joined: 9 years
Last seen: 1 year
Random date in "start_time"

Hi,

Got a site that now have some wrong build of "start_time" where a few lines have an added "date" of "31/12/1899" and seconds within. This causes the scrubbing to fail overall.

Wrong format: "start_time":"31/12/1899 18:30:00"
Right format: "start_time":"23:00"

How can I remove this fixed date from those "start_time" lines that have it?
Also need to fix/remove the seconds from this timestamp: 18:30:00 >> 18:30

From INI:

index_variable_element.modify {set|'config_site_id'}
index_showsplit.scrub {multi|{"name":"'index_variable_element'","data":[|{|}|]}}
*
index_temp_1.scrub {single|"date":"||"|"}
index_start.scrub {single|"start_time":"||"|"}
index_start.modify {addstart|'index_temp_1' }

Brgds
Strilen

strilen
Offline
Donator
Joined: 9 years
Last seen: 1 year

With some inputs from @Blackbear and some tweaking I found a working INI file.

index_temp_1.scrub {single(force)|"date":"||"|"}
index_start.scrub {single(separator=" " include=last)|"start_time":"||"|"}
index_start.modify {addstart|'index_temp_1' }

See attached INI for Sport24.

Brgds Strilen

Attachments: 
Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl