You are here

Time parsing error

8 posts / 0 new
Last post
hicks
Offline
Joined: 10 years
Last seen: 8 years
Time parsing error

Hi, I have been trying to create a new ini file, but i keep getting time parsing error.
index_start.scrub {single|"startdatetime":"||","|enddatetime}
index_start.modify{calcuate(format=time, HH:mm)}

The error in the logs is as follows:
time parsing error : String was not recognized as a valid DateTime.
start time scrubbed : 1403193600
computer date/time format: 6/19/2014 2:30:40 PM
execution stopped

 
I tried the same method for another website it worked fine.
Can someone help me out by telling were I am going wrong.

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 8 months
Is the support helpful?
support us

Just do
 
index_start.scrub {single(debug)|"startdatetime":"||","|enddatetime}
index_start.modify{calcuate(debug format=time, HH:mm)}

 
And look in the logging, what is printed. Should give you some more info.
Probably, your modify doesn't need to be there. You will see in the logging.

hicks
Offline
Joined: 10 years
Last seen: 8 years

Ok, tire it and got the following log:
Debugging information SiteIni
Element:  INDEX_START
Modify
     command & arguments : calcuate(debug format=time, HH:mm)
     Element value before operation:
empty element before the operation!
     Element value after operation:

Debugging information SiteIni
Element:  INDEX_START
html source written to : C:\ProgramData\ServerCare\WebGrab\html.source.htm
scrub strings:
     type & arguments : single(debug)
     blockstart   (bs): "startdatetime":"
     elementstart (es):
     elementend   (ee): ","
     blockend     (be): enddatetime

Separated html block(s), number of blocks = 1
----------begin--block----------
1403193600","enddatetime
----------end----block----------

Separated Element(s) (es) applied
----------begin--element----------
1403193600","enddatetime
----------end----element----------

Separated Element(s) (es) and (ee) applied of block 0
----------begin--element----------
1403193600
----------end----element----------

Elements , type single applied
----------begin--element----------
1403193600
----------end----element----------

Debugging information SiteIni
Element:  INDEX_START
Modify
     command & arguments : calcuate(debug format=time, HH:mm)
     Element value before operation:
1403193600
     Element value after operation:
1403193600

time parsing error : String was not recognized as a valid DateTime.
start time scrubbed : 1403193600
computer date/time format: 6/19/2014 2:58:32 PM
execution stopped

 

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 8 months
Is the support helpful?
support us

And what if you comment out the
index_start.modify{calcuate(debug format=time, HH:mm)}
line?

hicks
Offline
Joined: 10 years
Last seen: 8 years

when commented out, got the following error:
 
Debugging information SiteIni
Element:  INDEX_START
html source written to : C:\ProgramData\ServerCare\WebGrab\html.source.htm
scrub strings:
     type & arguments : single(debug)
     blockstart   (bs): "startdatetime":"
     elementstart (es):
     elementend   (ee): ","
     blockend     (be): enddatetime

Separated html block(s), number of blocks = 1
----------begin--block----------
1403193600","enddatetime
----------end----block----------

Separated Element(s) (es) applied
----------begin--element----------
1403193600","enddatetime
----------end----element----------

Separated Element(s) (es) and (ee) applied of block 0
----------begin--element----------
1403193600
----------end----element----------

Elements , type single applied
----------begin--element----------
1403193600
----------end----element----------

time parsing error : String was not recognized as a valid DateTime.
start time scrubbed : 1403193600
computer date/time format: 6/19/2014 3:07:22 PM
execution stopped

 

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 8 months
Is the support helpful?
support us

Ok,
 
Using the syntax highlighting of Notepad++, I found the error:
 
index_start.modify{calcuate(debug format=time, HH:mm)}
should be
index_start.modify{calculate(debug format=time, HH:mm)}

hicks
Offline
Joined: 10 years
Last seen: 8 years

Hey that worked... but i am not able to see the difference between both lines. is it an extra space??

hicks
Offline
Joined: 10 years
Last seen: 8 years

Oh.. i see; its the missing 'L' in calculate... that was really stupid of me... i should try installing notepad++
Finally got filmon.com to work... will send you the ini in a day...
 
Thanks Francis

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