Support » Plugin: File Renaming on Upload » Problem with “Datatime” renaming

  • Hi,

    I am now having a problem with datetime with your plugin.

    I am now using your plugin and set it up with “Datetime”.

    when I upload the media file, the plugin will rename the file like…

    180704-1200-0000.jpg

    But this Datetime is stamped with UTC time, not wp core time or the server.

    it should be : 180704-1200-0000.jpg
    but it renamed : 180704-1000-0000.jpg

    The server is set up on “Europe/Paris”, and also Wp too.

    It seems 2 hours difference between them.

    There must be the file to solve, but I do not want to customize it by myself.

    I would like to know how I should fix this with function.php or easier way to solve this issue.

    I will wait for your prely.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pablo Pacheco

    (@karzin)

    Hi,

    Can you please add this line on your functions.php?
    date_default_timezone_set(get_option('timezone_string'));

    Maybe that will fix it. Please tell me the results

    Hi Pablo,

    Thank you for your reply.

    It did not work…

    Thank you for your support.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with “Datatime” renaming’ is closed to new replies.