Start Publishing Time From Front Editor Is GMT [SOLVED]

More
12 years 8 months ago #18115 by ggppdk
Tracked down the publish_up bug, timezone offset was applied twice to the publish_up date, resulting in publish date going to the future for negative
GMT zones.
Fixed in latest 1.5.6 beta

For both files:
administrator/components/com_flexicontent/models/item.php
components/com_flexicontent/models/items.php

Replace code between these 2 lines:
(Do not delete these 2 line only the code between)
Code:
$item->created_by = $item->created_by ? $item->created_by : $user->get('id'); ... // Handle never unpublish date
with
Code:
if ($item->created && strlen(trim( $item->created )) <= 10) { $item->created .= ' 00:00:00'; } $date =& JFactory::getDate($item->created, $tzoffset); $item->created = $date->toMySQL(); if ($item->publish_up && strlen(trim( $item->publish_up )) <= 10) { $item->publish_up .= ' 00:00:00'; } $date =& JFactory::getDate($item->publish_up, $tzoffset); $item->publish_up = $date->toMySQL();

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #18299 by ggppdk
Corrected above post, it was incorrect


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #18336 by gauthier
Great, it works fine for me.

I applied this patch.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #18753 by fmgoodwin
ggppdk, Thanks for your response. Your patch fixed the specific problem I had of auto-publishing being delayed from the front-end editor.

However, now I'm having a similar time-offset problem with component obSocialSubmit.

The only way that it will publish to Facebook and Twitter is if I set my server offset to 0, or GMT.

This causes the rest of the site to run five hours fast EST, or four hours fast EDT.

Do you know what obSocialSubmit is reading that is GMT that is causing this issue?

Please advise. Regards, Francis Goodwin

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #18755 by ggppdk
Changing the correct time of your site should be strongly avoided, it will break everything else.

Contact author of this extension to fix any bugs.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.293 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline