Invalid date-time format on deploy app

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Forum rules
New release: CSPro 8.0
Post Reply
provogrammer2
Posts: 6
Joined: December 6th, 2022, 8:42 am

Invalid date-time format on deploy app

Post by provogrammer2 »

Hi,

Just install csweb 7.7.0 on Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 with 5.5.60-MariaDB - MariaDB Server, but got following error during deploy:

[2022-12-06 15:00:45] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\HttpException: "JSON does not validate. Violations: [buildTime] Invalid date-time "2022-12-06T08.00.44Z", expected format YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss+hh:mm " at /var/www/html/csweb/src/AppBundle/CSPro/CSProJsonValidator.php line 69 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\HttpException(code: 0): JSON does not validate. Violations:\n[buildTime] Invalid date-time \"2022-12-06T08.00.44Z\", expected format YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss+hh:mm\n at /var/www/html/csweb/src/AppBundle/CSPro/CSProJsonValidator.php:69)"} []

For now I just follow this thread to comment RFC date checks /viewtopic.php?p=12850&hilit=invalid+date#p12850 (I can't post url since this is my new accout)
and works for now, are there better sollution for this error?

Thanks,

**I have 3 account here, but unable to restore the password..no email coming, on forgot password click.
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Invalid date-time format on deploy app

Post by aaronw »

Can you attach the sync log? Also, the app package newly built and deployed after the new installation?
provogrammer2
Posts: 6
Joined: December 6th, 2022, 8:42 am

Re: Invalid date-time format on deploy app

Post by provogrammer2 »

Hi,

Here is the log and app uploaded to the apps folder.

[2022-12-06 15:00:45] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\HttpException: "JSON does not validate. Violations: [buildTime] Invalid date-time "2022-12-06T08.00.44Z", expected format YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss+hh:mm " at /var/www/html/csweb/src/AppBundle/CSPro/CSProJsonValidator.php line 69 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\HttpException(code: 0): JSON does not validate. Violations:\n[buildTime] Invalid date-time \"2022-12-06T08.00.44Z\", expected format YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss+hh:mm\n at /var/www/html/csweb/src/AppBundle/CSPro/CSProJsonValidator.php:69)"} []

aaronw wrote: December 7th, 2022, 11:52 am Can you attach the sync log? Also, the app package newly built and deployed after the new installation?
Thanks,
Attachments
tmpAppFHjvxs.zip
(8.78 KiB) Downloaded 84 times
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Invalid date-time format on deploy app

Post by aaronw »

When I tried to open the CSDS I couldn't. It complained about the datetime, so I the made the following edit to the csds (swapped periods for colons):

Code: Select all

 "buildTime": "2022-12-06T08.00.44Z",
to

Code: Select all

 "buildTime": "2022-12-06T08:00:44Z",
and I was able to open the file.

Try making this edit and see if you're able to deploy. If so, then it's just a matter of looking into why this datetime isn't handled.
provogrammer2
Posts: 6
Joined: December 6th, 2022, 8:42 am

Re: Invalid date-time format on deploy app

Post by provogrammer2 »

Yes, it work by manually editing the csds file using your suggestions.

Thanks,
aaronw wrote: December 8th, 2022, 12:44 pm When I tried to open the CSDS I couldn't. It complained about the datetime, so I the made the following edit to the csds (swapped periods for colons):

Code: Select all

 "buildTime": "2022-12-06T08.00.44Z",
to

Code: Select all

 "buildTime": "2022-12-06T08:00:44Z",
and I was able to open the file.

Try making this edit and see if you're able to deploy. If so, then it's just a matter of looking into why this datetime isn't handled.
Post Reply