Skip to content

wrong time on chart component #324

Closed
@guiguid

Description

@guiguid

Introduction

There is a gap in the time in SQLITE, and "chart" component ( True as TIME ).

To Reproduce

List of steps to reproduce the behavior. Include the sql file you are using and the eventual relevant parts of your database schema

select 
dt                      as date
FROM balance
ORDER BY balance.dt DESC LIMIT 1;
-- RETURN
-- 2024-05-20 08:26:49

others component works (timeline component) :

select 
    'timeline' as component,
    TRUE       as simple;
select 
    'Last Update at ' as title,
    dt                      as date
FROM balance
ORDER BY balance.dt DESC LIMIT 1;

image

Actual behavior

chart component display wrong time :

select 
    'chart'             as component,
    'Balance History' as title,
    'area'              as type,
    'indigo'            as color,
    5                   as marker,
    TRUE                as time;

select 
    dt as x,
    balance                     as y 
FROM balance
ORDER BY balance.dt DESC LIMIT 60;

image

Expected behavior

The time displayed by "chart" component should be the same as SQLITE and others components.

Version information

  • OS: NixOS
  • Database : SQLite
  • SQLPage Version : 0.20.5

Additional context

Local Time: GMT +1 (Paris) + Summer.

more

Thanks for this amazing tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions