History log of /plugin/struct/types/DateTime.php (Results 1 – 25 of 28)
Revision Date Author Comments
# 7fe2cdf2 13-Sep-2023 Andreas Gohr <andi@splitbrain.org>

apply #670 and manually cleanup afterwards

fixes some failing tests
uses sexplode over array_pad
reformats multiline arrays


# 7234bfb1 13-Sep-2023 splitbrain <splitbrain@users.noreply.github.com>

�� Automatic code style fixes


# 89579610 14-Apr-2022 Chris MacMackin <cmacmackin@gmail.com>

Fixed issue #437, filtering DateTime

Applying a filter on a DateTime column in an aggregation was causing
an uncaught error to occur and prevent the page being rendered at
all. Fortunately, this tur

Fixed issue #437, filtering DateTime

Applying a filter on a DateTime column in an aggregation was causing
an uncaught error to occur and prevent the page being rendered at
all. Fortunately, this turned out to be a very simple issue to resolve.

show more ...


# 1ca21e17 31-Mar-2022 Anna Dabrowska <dabrowska@cosmocode.de>

Multiple fixes for PHP 8 (#600)


# 0549dcc5 13-Jan-2022 Andreas Gohr <andi@splitbrain.org>

PHP code sniffer autofixes


# d6d97f60 09-Apr-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Automatic coding style fixes


# d8bfcd03 30-Sep-2019 Anna Dabrowska <dabrowska@cosmocode.de>

Add missing translations


# 733fd33b 18-Sep-2019 Anna Dabrowska <dabrowska@cosmocode.de>

Clearer names of date constraints


# 218490cf 17-Sep-2019 Anna Dabrowska <dabrowska@cosmocode.de>

Add past and future date(time) constraints


# 16daff3d 03-Apr-2019 Anna Dabrowska <dabrowska@cosmocode.de>

Fix default datetime format

fixes #427


# b80ca5e1 26-Jan-2018 Michael Große <grosse@cosmocode.de>

fix: make html5 datetime picker actually work

The datetime picker expects and produces dates / time pairs separated by
the "T" character, not a space. Further, it does not handle seconds at
all.

Th

fix: make html5 datetime picker actually work

The datetime picker expects and produces dates / time pairs separated by
the "T" character, not a space. Further, it does not handle seconds at
all.

Therefore, we have to provide the timestamp in the input field separated
by a "T" and for consistency drop seconds altogether. Hence, it
becomes necessary to replace the "T" by a space again before providing it to jQuery
date picker fallback.

Further, we have to actually parse the "T" when validating the
timestamps we receive from the user.

show more ...


# 34f483db 04-Jan-2018 Randolf Rotta <rrotta@informatik.tu-cottbus.de>

use HTML5 date and datetime-local inputs with jquery as fallback, make the year easier to edit


# 3e7a5b3c 13-Jun-2017 Michael Große <grosse@cosmocode.de>

Refactor to use buildAttributes -> cleaner code


# ee983135 02-Jun-2017 Michael Große <grosse@cosmocode.de>

Fix multiple inputs in one label: it's invalid ��

Multiple inputs within a single label in invalid HTML. This bug can not
only occur in multi-fields but also in plugin-provided single fields
which m

Fix multiple inputs in one label: it's invalid ��

Multiple inputs within a single label in invalid HTML. This bug can not
only occur in multi-fields but also in plugin-provided single fields
which may contain multiple input-fields which are then only combined by
javascript.

Thus, we provide an id which every type can assign to the edit-field
best suited. For multi-types this is usually the new-input-template.

Fixes #292

show more ...


# af993d55 03-Jan-2017 Michael Grosse <grosse@cosmocode.de>

fix: stop OR filters causing problems

The filters coming from syntax should be grouped together in a subgroup
to that OR-filters cannot undo the filters on latest=1 etc.

Since we cannot know in the

fix: stop OR filters causing problems

The filters coming from syntax should be grouped together in a subgroup
to that OR-filters cannot undo the filters on latest=1 etc.

Since we cannot know in the filter function whether there is already a
subgroup for us to use or which to use, the solution was to give the
correct subgroup to the filter function directly.

Instead of adding another parameter to the already long list of
parameters for that function, I have chosen to give the
QueryBuilderWhere a reference back to the original QueryBuilder.

show more ...


# e9259fa1 22-Nov-2016 Michael Grosse <grosse@cosmocode.de>

feat: let %lastupdated% refer to newest page rev

This reimplements 1f4dc0b95bed5d54071e0a290886bc9ed1ba1d32.
This time correctly extending the class DateTime which is actually used
in Search::findCo

feat: let %lastupdated% refer to newest page rev

This reimplements 1f4dc0b95bed5d54071e0a290886bc9ed1ba1d32.
This time correctly extending the class DateTime which is actually used
in Search::findColumn()

SPR-622

show more ...


# 1707798d 10-Nov-2016 Michael Grosse <grosse@cosmocode.de>

fix: Set right class on datetime entry for widget

With this the correct class will be set in all the scenarios (page-edit,
inline, lookup). Then changing the date via the datepicker will always
gene

fix: Set right class on datetime entry for widget

With this the correct class will be set in all the scenarios (page-edit,
inline, lookup). Then changing the date via the datepicker will always
generate time-template as defined in script/EntryEditor.js

Fixes #204

show more ...


# d4232f85 25-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

last modified dates should be displayed in local time


# 9d461ec6 24-Aug-2016 Andreas Gohr <andi@splitbrain.org>

Merge pull request #166 from cosmocode/bug140

Always use raw values for editors


# c0230d2c 24-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

Always use raw values for editors

This is another attempt to fix #140. The valueEditor() and
multiValueEditor() now always expect raw values to be passed. The Value
class was adjusted accordingly. I

Always use raw values for editors

This is another attempt to fix #140. The valueEditor() and
multiValueEditor() now always expect raw values to be passed. The Value
class was adjusted accordingly. It now allows to set the raw value
(which is what we get from POST). If done, the Value object is treated
as a rawonly Value that will throw an exception when you try to access
value or displayvalue.

show more ...


# 23169abe 23-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

Validation should happen on raw value

This just renames the parameter to make this more clear


# b92072dd 28-Jul-2016 Andreas Gohr <gohr@cosmocode.de>

let DateTime handle rev column on its own

This fixes filtering for %lastupdate%


# e45a1451 28-Jul-2016 Andreas Gohr <gohr@cosmocode.de>

adjust for changes in master


# 7df82d6a 27-Jul-2016 Andreas Gohr <gohr@cosmocode.de>

add the default to overridden constructor


# 64cf7cc6 27-Jul-2016 Andreas Gohr <gohr@cosmocode.de>

Initialize DateType with dformat configuration

We're not using strftime in our Date and DateTime types because we want
to be able to represent dates outside the unix timestamp range.

To reuse the s

Initialize DateType with dformat configuration

We're not using strftime in our Date and DateTime types because we want
to be able to represent dates outside the unix timestamp range.

To reuse the strftime format string we have in DokuWiki it needs to be
converted to a date() compatible format. The class added for that could
ultimately be moved to a third party project.

show more ...


12