Quantcast
Channel: Zammad - Community - Latest posts
Viewing all articles
Browse latest Browse all 6761

Timestamp are not correct

$
0
0

Thank you very much. I do the “\d+ tickets” command, and I have timestamp with time zone.

   Table "public.tickets"
            Column            |           Type           | Collation | Nullable |               Default               | Storage  | Compression | Stats target | Description
------------------------------+--------------------------+-----------+----------+-------------------------------------+----------+-------------+--------------+-------------
 id                           | bigint                   |           | not null | nextval('tickets_id_seq'::regclass) | plain    |             |              |
 group_id                     | bigint                   |           | not null |                                     | plain    |             |              |
 priority_id                  | bigint                   |           | not null |                                     | plain    |             |              |
 state_id                     | bigint                   |           | not null |                                     | plain    |             |              |
 organization_id              | bigint                   |           |          |                                     | plain    |             |              |
 number                       | character varying(60)    |           | not null |                                     | extended |             |              |
 title                        | character varying(250)   |           | not null |                                     | extended |             |              |
 owner_id                     | bigint                   |           | not null |                                     | plain    |             |              |
 customer_id                  | bigint                   |           | not null |                                     | plain    |             |              |
 note                         | character varying(250)   |           |          | NULL::character varying             | extended |             |              |
 first_response_at            | timestamp with time zone |           |          |                                     | plain    |             |              |
 first_response_escalation_at | timestamp with time zone |           |          |                                     | plain    |             |              |
 first_response_in_min        | bigint                   |           |          |                                     | plain    |             |              |
 first_response_diff_in_min   | bigint                   |           |          |                                     | plain    |             |              |
 close_at                     | timestamp with time zone |           |          |                                     | plain    |             |              |
 close_escalation_at          | timestamp with time zone |           |          |                                     | plain    |             |              |
 close_in_min                 | bigint                   |           |          |                                     | plain    |             |              |
 close_diff_in_min            | bigint                   |           |          |                                     | plain    |             |              |
 update_escalation_at         | timestamp with time zone |           |          |                                     | plain    |             |              |
 update_in_min                | bigint                   |           |          |                                     | plain    |             |              |
 update_diff_in_min           | bigint                   |           |          |                                     | plain    |             |              |
 last_contact_at              | timestamp with time zone |           |          |                                     | plain    |             |              |
 last_contact_agent_at        | timestamp with time zone |           |          |                                     | plain    |             |              |
 last_contact_customer_at     | timestamp with time zone |           |          |                                     | plain    |             |              |
 last_owner_update_at         | timestamp with time zone |           |          |                                     | plain    |             |              |
 create_article_type_id       | bigint                   |           |          |                                     | plain    |             |              |
 create_article_sender_id     | bigint                   |           |          |                                     | plain    |             |              |
 article_count                | bigint                   |           |          |                                     | plain    |             |              |
 escalation_at                | timestamp with time zone |           |          |                                     | plain    |             |              |
 pending_time                 | timestamp with time zone |           |          |                                     | plain    |             |              |
 type                         | character varying(100)   |           |          | NULL::character varying             | extended |             |              |
 time_unit                    | numeric(6,2)             |           |          | NULL::numeric                       | main     |             |              |
 preferences                  | text                     |           |          |                                     | extended |             |              |
 updated_by_id                | bigint                   |           | not null |                                     | plain    |             |              |
 created_by_id                | bigint                   |           | not null |                                     | plain    |             |              |
 created_at                   | timestamp with time zone |           | not null |                                     | plain    |             |              |
 updated_at                   | timestamp with time zone |           | not null |                                     | plain    |             |              |
 marke                        | character varying(255)   |           |          | NULL::character varying             | extended |             |              |
 grund                        | character varying(255)   |           |          | NULL::character varying             | extended |             |              |
 kundennummer                 | character varying(120)   |           |          | NULL::character varying             | extended |             |              |
 artikel                      | character varying(3000)  |           |          | NULL::character varying             | extended |             |              |
 artikelid                    | bigint                   |           |          |                                     | plain    |             |              |
 customer_type                | character varying(255)   |           |          | NULL::character varying             | extended |             |              |
 serialno                     | character varying(1000)  |           |          | NULL::character varying             | extended |             |              |
 kostenaufwand                | character varying(255)   |           |          | NULL::character varying             | extended |             |              |
 servicelevel                 | character varying(255)   |           |          | NULL::character varying             | extended |             |              |
 kostenbetrag                 | character varying(120)   |           |          | NULL::character varying             | extended |             |              |
 versand                      | character varying(255)   |           |          | NULL::character varying             | extended |             |              |
 last_close_at                | timestamp with time zone |           |          |                                     | plain    |             |              |
Indexes:
    "idx_17249_primary" PRIMARY KEY, btree (id)
    "idx_17249_fk_rails_b62b455ecb" btree (organization_id)
    "idx_17249_fk_rails_edf0f77848" btree (updated_by_id)
    "idx_17249_index_tickets_on_close_at" btree (close_at)
    "idx_17249_index_tickets_on_close_diff_in_min" btree (close_diff_in_min)
    "idx_17249_index_tickets_on_close_escalation_at" btree (close_escalation_at)
    "idx_17249_index_tickets_on_close_in_min" btree (close_in_min)
    "idx_17249_index_tickets_on_create_article_sender_id" btree (create_article_sender_id)
    "idx_17249_index_tickets_on_create_article_type_id" btree (create_article_type_id)
    "idx_17249_index_tickets_on_created_at" btree (created_at)
    "idx_17249_index_tickets_on_created_by_id" btree (created_by_id)
    "idx_17249_index_tickets_on_customer_id" btree (customer_id)
    "idx_17249_index_tickets_on_customer_id_and_state_id_and_created" btree (customer_id, state_id, created_at)
    "idx_17249_index_tickets_on_escalation_at" btree (escalation_at)
    "idx_17249_index_tickets_on_first_response_at" btree (first_response_at)
    "idx_17249_index_tickets_on_first_response_diff_in_min" btree (first_response_diff_in_min)
    "idx_17249_index_tickets_on_first_response_escalation_at" btree (first_response_escalation_at)
    "idx_17249_index_tickets_on_first_response_in_min" btree (first_response_in_min)
    "idx_17249_index_tickets_on_group_id" btree (group_id)
    "idx_17249_index_tickets_on_group_id_and_state_id" btree (group_id, state_id)
    "idx_17249_index_tickets_on_group_id_and_state_id_and_close_at" btree (group_id, state_id, close_at)
    "idx_17249_index_tickets_on_group_id_and_state_id_and_created_at" btree (group_id, state_id, created_at)
    "idx_17249_index_tickets_on_group_id_and_state_id_and_owner_id" btree (group_id, state_id, owner_id)
    "idx_17249_index_tickets_on_group_id_and_state_id_and_updated_at" btree (group_id, state_id, updated_at)
    "idx_17249_index_tickets_on_group_id_state_id_owner_id_close_at" btree (group_id, state_id, owner_id, close_at)
    "idx_17249_index_tickets_on_group_id_state_id_owner_id_created_a" btree (group_id, state_id, owner_id, created_at)
    "idx_17249_index_tickets_on_group_id_state_id_owner_id_updated_a" btree (group_id, state_id, owner_id, updated_at)

What is the correct way to fix this problem in your opinion


Viewing all articles
Browse latest Browse all 6761

Trending Articles