Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp group-documents: date and time pb

  • Avatar of neobabs
    neobabs
    Participant

    @neobabs

    Hello, I have not find any place of forum in the dev website (studio66design) for post this so it will be here.

    I use the bp group-documents 0.2.5 with bp 1.2 (thx all devs for this release!!) and there is a bug with the date / hour of the document we upload.

    In group activity tabs and wide activity stream but not in “documents” tabs, here date is perfect.

    the next document i uploaded is marked in activity stream as 10 years old … :p

    If someone know how to fix this ? or just if the dev see that there is this pb in the last release it can be good.

    Thanks in advance.

    Edit:

    Oh, i forget :D

    date and time are shown twice too.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Avatar of peter-anselmo
    Peter Anselmo
    Participant

    @peter-anselmo

    Neobabs:

    Thanks for giving my plugin a whirl.

    This is a good catch. I’ve been able to reproduce this and I’m looking into it. I’ll get back to you shortly.

    -Peter

    Avatar of roydeanjr
    roydeanjr
    Participant

    @roydeanjr

    Interesting – bp-gallery beta/release candidates are having the same problem. Is this a bp issue? Or something plug-in authors are missing?

    Avatar of D Cartwright
    D Cartwright
    Participant

    @aekeron

    I think it’s the change to GMT time functions in BuddyPress. Something we all need to start taking notice of :)

    yep and bbPress will have the same issue if you use it externally but sharing the same tables (unique circumstances)

    http://trac.buddypress.org/ticket/1727

    http://bbpress.org/forums/topic/buddypress-12-bbpress-102-freshness-in-gmt

    Avatar of peter-anselmo
    Peter Anselmo
    Participant

    @peter-anselmo

    In my plugin’s case it’s something more drastic. I was using UNIX Timestamp function instead of a MySQL DateTime one (Whoops!). Upon insert, it was getting converted to 0000-00-00 00:00:00. Thus, since it’s now 2010, the date was just over 10 years old (which is a little Y2Kish, as it should be 2010 years old). However, I haven’t figured out why things are being shown twice.

    Avatar of neobabs
    neobabs
    Participant

    @neobabs

    @peter-anselmo

    is it not cause of this in line 106 in classes.php ? :

    ” $this->user_id,

    $this->group_id,

    time(),

    time(),

    $this->file,

    $this->name,

    $this->description

    Avatar of neobabs
    neobabs
    Participant

    @neobabs

    Hey, have you find where was this pb ?

    thanks.

    Avatar of peter-anselmo
    Peter Anselmo
    Participant

    @peter-anselmo

    Neo -

    It’s line 70 in activity.php

    Deleting this line:'recorded_time' => time(), // Optional completely will solve the 10 year problem. What I haven’t figured out is why the activity meta is being duplicated.

    Avatar of peter-anselmo
    Peter Anselmo
    Participant

    @peter-anselmo

    Neo-

    Just figured out the duplication problem – 1.2 uses the activity stream’s ‘action’ field for what used to be in the ‘content’ field. I’ve updated my activity posts to reflect the new standard, and that fixed the problem. I’ll have an update out in the next few days, once I debug the new document folder.

    PLEASE NOTE: BACK UP YOUR DOCUMENTS BEFORE UPGRADING!!!

    No Seriously, anyone reading this: go download wp-content/plugins/buddypress-group-documents/documents and make a copy of it.

    The next version of the plugin will use the main uploads folder (for this very reason), but using the 1-click update will delete all of your documents. You’ll need to re-upload them if this happens.

    Avatar of neobabs
    neobabs
    Participant

    @neobabs

    Good that you find the problem.

    Thanks you

Viewing 10 replies - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.