Double timezone specification
- ijsbaanleuven
-
Topic Author
- Offline
Less
More
9 years 5 months ago #270267
by ijsbaanleuven
Double timezone specification was created by ijsbaanleuven
-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 5.6.30
-- Browser(s) name and version -- : Chrome last version
-- Error-message(debug-mod must be tuned on) -- : 0 DateTime::__construct(): Failed to parse time string (-001-11-29T23:40:28+00:00) at position 7 (-): Double timezone specification
Hi !
After update to the latest J! version today, wanting to edit my report, i get the following error :
0 DateTime::__construct(): Failed to parse time string (-001-11-29T23:40:28+00:00) at position 7 (-): Double timezone specification
In my search in the forum, I could only find this topic that is related :
Forum search result
But this seems to old to be of help.
Any help will be grately appreciated !
Thanks !
-- Joomla version -- : 3.7.2
-- PHP version -- : 5.6.30
-- Browser(s) name and version -- : Chrome last version
-- Error-message(debug-mod must be tuned on) -- : 0 DateTime::__construct(): Failed to parse time string (-001-11-29T23:40:28+00:00) at position 7 (-): Double timezone specification
Hi !
After update to the latest J! version today, wanting to edit my report, i get the following error :
0 DateTime::__construct(): Failed to parse time string (-001-11-29T23:40:28+00:00) at position 7 (-): Double timezone specification
In my search in the forum, I could only find this topic that is related :
Forum search result
But this seems to old to be of help.
Any help will be grately appreciated !
Thanks !
Please Log in or Create an account to join the conversation.
9 years 5 months ago #270268
by nicolas
Replied by nicolas on topic Double timezone specification
Hi,
I don't know why you have that but the first dash shouldn't be there in the date.
Change the line:
return JHTML::_('date',$time,$format,false);
to:
return JHTML::_('date',ltrim($time,'-'),$format,false);
in the file administrator/components/com_hikashop/helpers/helper.php and that should prevent that issue from happening.
Please report back on the result.
I don't know why you have that but the first dash shouldn't be there in the date.
Change the line:
return JHTML::_('date',$time,$format,false);
to:
return JHTML::_('date',ltrim($time,'-'),$format,false);
in the file administrator/components/com_hikashop/helpers/helper.php and that should prevent that issue from happening.
Please report back on the result.
The following user(s) said Thank You: ijsbaanleuven
Please Log in or Create an account to join the conversation.
- ijsbaanleuven
-
Topic Author
- Offline
9 years 5 months ago #270269
by ijsbaanleuven
Replied by ijsbaanleuven on topic Double timezone specification
Hi Nicolas !
Thanks for the super fast replay (as usual)
Seems to work, but, in the "Display" box, in the field of the end date, I now get the following : 3940-02-03 01:19.
When I clear the filed and hit save, it just returns.
When I go to the calendar symbol to pick an end date, it starts in the year 2100

When I choose the correct date and save the file it works just fine and stays correct.
BR,
Joris
Thanks for the super fast replay (as usual)
Seems to work, but, in the "Display" box, in the field of the end date, I now get the following : 3940-02-03 01:19.
When I clear the filed and hit save, it just returns.
When I go to the calendar symbol to pick an end date, it starts in the year 2100
When I choose the correct date and save the file it works just fine and stays correct.
BR,
Joris
Please Log in or Create an account to join the conversation.
9 years 5 months ago #270271
by nicolas
Replied by nicolas on topic Double timezone specification
Hi,
We'll look at doing a better patch then.
I'm glad the problem is now solved for you.
We'll look at doing a better patch then.
I'm glad the problem is now solved for you.
Please Log in or Create an account to join the conversation.
Time to create page: 0.077 seconds