dokufreaks / plugin-meta

http://dokuwiki.org/plugin:meta
8 stars 7 forks source link

Fails to set 'date created' #11

Open trailjeep opened 2 years ago

trailjeep commented 2 years ago

Latest version correctly sets all but the date in the following example:

~~META:
title                 = Example
&creator              = AUTHOR
&date created         = 2014-12-03
&description abstract = This is a test
&source               = http://www.example.org/
~~

Replaced syntax.php with 2015-07-24 version and all works as expected.

mightymt commented 2 years ago

I can confirm this behaviour, only just noticed it today.

The problem seems to be, that the current version of the plugin writes the dates to a nested sub-array:

   [date] => Array
        (
            [created] => 1643816481
            [modified] => 1659457322
            [0] => Array
                (
                    [created] => 949506081
                    [modified] => 1659457322
                )

        )

Version 2015-07-24 instead correctly modifies the default array elements:

    [date] => Array
        (
            [created] => 949506081
            [modified] => 1659457322
        )
BodoBiker commented 2 years ago

BLOG plugin doesn't sort correct date created anymore after update META plugin. How is the status of this issue? Will it be fixed/ updated?