ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Inconsistency in Api_channel_entries for the field “edit_date”?

September 24, 2012 4:19am

Subscribe [1]
  • #1 / Sep 24, 2012 4:19am

    Pv Ledoux

    95 posts

    This question may be related to a resolved thread.

    Hi Shane, Kevin,

    I’m sorry to re-open this thread but I can’t be agree with your response.
    Let say I’m creating a new entry, but I need to set the entry date in the future (or, let’s be crazy, in the past). The edit_date will be in that case in the future (or in the past)... which is not really accurate… right?

    I checked the history of the Api_channel_entries.php… and the edit_date was correctly set:

    'edit_date'     => date("YmdHis"),

    which is correct, and has been replaced by:

    'edit_date'     => $this->EE->localize->decode_date('%Y%m%d%H%i%s', $data['entry_date'], TRUE),

    which is obviously not right… right?


    Should I open a bug report?

     

    Cheers,

    Pv

  • #2 / Sep 24, 2012 6:34pm

    Kevin Smith

    4784 posts

    Hi Pv Ledoux,

    No, you’re right. No need to open a bug report. We came to the conclusion after closing that thread that edit date should obviously be independent of the entry date in case the entry date isn’t set to “now”. I’ll update this thread with the code changes. Thanks for adding your comments, Pv!

  • #3 / Sep 25, 2012 3:21am

    Pv Ledoux

    95 posts

    Great! Thanks a lot!

    Pv

  • #4 / Sep 26, 2012 10:55am

    Kevin Smith

    4784 posts

    Have a good one, Pv.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases