Skip to content

daterange: format passed ignored #171

Open
@tmak7

Description

@tmak7

Hi,

I started playing with this library yesterday and it looks pretty cool.

I have a certain MySQL column which I store a timestamp (the "U" option for date()).
I was under the impression that if I specify a daterange variable and give it format "U", then the query executed will convert the date to this format.

But, whatever I supply in the format, the actual query executed has the format of "Y-m-d H:i:s".

here's my variable full definition:

-- VARIABLE: { 
--      name: "range", 
--      display: "start_time Range",
--      type: "daterange",
--      format: "U",
--      default: { start: "-2 week", end: "today" }
-- }

thx!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions