• Resolved jscongdon

    (@jscongdon)


    I know that many versions ago, there was a timezone bug fix. As of today I still get a scheduled moniker for a document posted with a current date.
    They only way I’ve been able to get around this is to change the date to a previous date. I do not see any options for changing time / timezone options in the settings area.
    Also, if a document can be scheduled for visibility, could we get a timestamp as well?

Viewing 13 replies - 16 through 28 (of 28 total)
  • Thread Starter jscongdon

    (@jscongdon)

    Removed the offset… and there was no change.

    Plugin Author bhaldie

    (@bhaldie)

    okay take a look at this function mdocs_format_date and remove any offset constants there and see what happens.

    Thread Starter jscongdon

    (@jscongdon)

    Now the times stamp is 8 hours ahead.
    My current timezone puts me UTC -4 (trying to think how that’s playing a part … )

    Thread Starter jscongdon

    (@jscongdon)

    So… in that function… you are setting date_default_timezone_set(‘UTC’);
    And then you tell it to add the MDOCS_TIME_OFFSET to $gmdate which is time()…
    It’s adding 4 but not -4…

    Thread Starter jscongdon

    (@jscongdon)

    In mdocs-upload Line 154 = $date = mdocs_format_date($_POST['mdocs-last-modified'], MDOCS_TIME_OFFSET);
    Then in mdocs-functions Line 161 you -$time_offset
    And then continue to +MDOCS_TIME_OFFSET

    If I’m reading that correctly, the MDOCS_TIME_OFFSET is negated then added – which cancels itself out.

    If I comment out the -$time_offset on Line 161 – it posts correctly.

    • This reply was modified 7 years, 4 months ago by jscongdon.
    • This reply was modified 7 years, 4 months ago by jscongdon.
    Plugin Author bhaldie

    (@bhaldie)

    Thanks for tracking this down.. I will do some further testing but I think you have may have found the issue. Look for the fix on the next version which should be out in the next week or 2.

    Also I have added the export feature to not delete the zip file as an option which will be out the next version as well.

    Thanks
    again.

    Thread Starter jscongdon

    (@jscongdon)

    Cool deal.
    With looking at this… it would nice to be able to change the post date / time. I may not want a document to be live until say 0900 on a Monday.
    Also, having an expiration date/time would be cool too.

    No problem.

    Plugin Author bhaldie

    (@bhaldie)

    you currently can have scheduled times, if you set the time to lets say monday at 900am it will be invisible to all users expected the post author until that time.

    I will look into expiration thou as you can’t do that right now.

    Thread Starter jscongdon

    (@jscongdon)

    When adding a document, I don’t see any options for time… just a place for date. (a date picker would be nice there)

    But if you have to go to the post section and change the time… you can just use the Post Expirator plugin for that part.
    Would be nice to do it all in one place as you are adding the document.

    Plugin Author bhaldie

    (@bhaldie)

    its date and time when you are adding a new or updating a mdocs document. So if your date format is 10/10/2017 20:00 then that would be the date and time.

    Thread Starter jscongdon

    (@jscongdon)

    Ahhh, gotcha… ’cause it doesn’t show the time – just the date.

    Plugin Author bhaldie

    (@bhaldie)

    yes date displayed is what you have it set to in mDocs > Options > Settings > Date Time Format. so if you have it set d-m-Y G:i time will be displayed.

    Thread Starter jscongdon

    (@jscongdon)

    Ha!… that’s it. I had seen the formatting but it didn’t click that I could add the time in.

    • This reply was modified 7 years, 4 months ago by jscongdon.
Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘Scheduled Document’ is closed to new replies.