- Posts: 9
COMMUNITY FORUM
Error: Double timezone specification
- Paul Andrews
- Topic Author
- Offline
- New Member
Less
More
7 years 6 months ago - 7 years 6 months ago #161794
by Paul Andrews
Error: Double timezone specification was created by Paul Andrews
HI, has anyone got any idea how to solve this.
A site I have recently updated to Joomla 3.7 has an error I have not seen before. When saving certain existing items are edited and saved, the following error displays:
0 DateTime::__construct(): Failed to parse time string (-1-11-30 00:00:00) at position 5 (-): Double timezone specification
Other items save fine. I am yet to determine what difference if any between the ones that will save and those that won't.
Everything is up to date, using php 7.1
A site I have recently updated to Joomla 3.7 has an error I have not seen before. When saving certain existing items are edited and saved, the following error displays:
0 DateTime::__construct(): Failed to parse time string (-1-11-30 00:00:00) at position 5 (-): Double timezone specification
Other items save fine. I am yet to determine what difference if any between the ones that will save and those that won't.
Everything is up to date, using php 7.1
Last edit: 7 years 6 months ago by Paul Andrews. Reason: update
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 6 months ago #161850
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Error: Double timezone specification
Hello,
Can you enable error reporting or take a look at the error_log to see which file(s) are producing this error?
Can you enable error reporting or take a look at the error_log to see which file(s) are producing this error?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Reaction
- Offline
- New Member
Less
More
- Posts: 5
7 years 5 months ago - 7 years 5 months ago #162317
by Reaction
Replied by Reaction on topic Error: Double timezone specification
Having the same error.
Looks like when we updated the "publish" date field wiped throughout all of our K2 items and now that field is zeroed out in the database (all the items in joomla shows Jan 12, 2017). Until you edit the published date, the item will continuously throw this error on save.
We're not in a spot where we can wait for a solution so we're just going to drop a number into that field for all of our items to prevent the errors, but for someone who is using the publishing date, that wouldn't be a good solution.
Note:
Error logs have nothing related to this error
Maximum reporting does not show additional errors
Looks like when we updated the "publish" date field wiped throughout all of our K2 items and now that field is zeroed out in the database (all the items in joomla shows Jan 12, 2017). Until you edit the published date, the item will continuously throw this error on save.
We're not in a spot where we can wait for a solution so we're just going to drop a number into that field for all of our items to prevent the errors, but for someone who is using the publishing date, that wouldn't be a good solution.
Note:
Error logs have nothing related to this error
Maximum reporting does not show additional errors
Last edit: 7 years 5 months ago by Reaction.
Please Log in or Create an account to join the conversation.
- Reaction
- Offline
- New Member
Less
More
- Posts: 5
7 years 5 months ago - 7 years 5 months ago #162318
by Reaction
Replied by Reaction on topic Error: Double timezone specification
...didn't work. Really not sure what's up here. We do know changing the published date field manually fixes individual entries (we just can't do that for 1000+ entries)
Last edit: 7 years 5 months ago by Reaction.
Please Log in or Create an account to join the conversation.
- Reaction
- Offline
- New Member
Less
More
- Posts: 5
7 years 5 months ago - 7 years 5 months ago #162319
by Reaction
Replied by Reaction on topic Error: Double timezone specification
Oh man, my buddy here found a fix:
temp fix line 139 of `administrator/components/com_k2/models/item.php`
Hopefully that helps.
temp fix line 139 of `administrator/components/com_k2/models/item.php`
if (!(bool) strtotime($row->publish_up)) {
$row->publish_up = '0000-00-00 00:00:00';
}
Hopefully that helps.
Last edit: 7 years 5 months ago by Reaction. Reason: fixing syntax
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 5 months ago #162335
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Error: Double timezone specification
Which version of K2 are you using?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Reaction
- Offline
- New Member
Less
More
- Posts: 5
7 years 5 months ago - 7 years 5 months ago #162379
by Reaction
Replied by Reaction on topic Error: Double timezone specification
Just updated. K2 v2.7.1 on Joomla 3.7.2
Last edit: 7 years 5 months ago by Reaction.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 5 months ago #162393
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Error: Double timezone specification
Did you update before the error and before using Joomla! 3.7.x?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Steven Trooster
- Offline
- Premium Member
Less
More
- Posts: 130
7 years 4 months ago #162763
by Steven Trooster
Replied by Steven Trooster on topic Error: Double timezone specification
Any definite solution yet?
I'm getting the same error here. An editor adds an article through the frontend of my site. When the article is edited in the admin, the above error is produced when trying to save changes.
When I look at the database I see that the items created in the frontend have a wrong 'created' value (0000-00-00 00:00:00). Apparently there is no creation date stored in the frontend.
Joomla 3.7.3 and K2 2.7.1
I'm getting the same error here. An editor adds an article through the frontend of my site. When the article is edited in the admin, the above error is produced when trying to save changes.
When I look at the database I see that the items created in the frontend have a wrong 'created' value (0000-00-00 00:00:00). Apparently there is no creation date stored in the frontend.
Joomla 3.7.3 and K2 2.7.1
Please Log in or Create an account to join the conversation.
- Steven Trooster
- Offline
- Premium Member
Less
More
- Posts: 130
7 years 4 months ago #162764
by Steven Trooster
Replied by Steven Trooster on topic Error: Double timezone specification
There is a work around for now: when editing an item, go to the Publishing & Meta tab and correct the created date. (Set it to today or whatever date, as long as the date format is yyyy-mm-dd hh:mm:ss)
Please Log in or Create an account to join the conversation.