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

Timestamp are not correct

$
0
0

Infos:

  • Used Zammad version: 6.1
  • Used Zammad installation type: package
  • Operating system: debian 12
  • Browser + version: any

Expected behavior:

  • The local time should accurately reflect the current time for the specified timezone.

Actual behavior:

  • The local time in the whole system is incorrect, showing two hours in the past from the true local time. In the postgre db is also the wrong timestamp.

Steps to reproduce the behavior:

  • I Installed a fresh zammad 6.1 in debian 12 and restore it from an zammad 6.1 from debian 10

System Time Settings:

root@server:~# timedatectl
               Local time: Wed 2024-06-19 14:29:08 CEST
           Universal time: Wed 2024-06-19 12:29:08 UTC
                 RTC time: Wed 2024-06-19 12:30:49
                Time zone: Europe/Berlin (CEST, +0200)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Ticket creation at 2024-06-19 14:58:13.431759+02

Data in postgres

zammad=# select id, title, created_at from tickets where id = 45356;
  id   |         title          |          created_at
-------+------------------------+-------------------------------
 45356 | Test Ticket at - 14:58 | 2024-06-19 **12:58:13.431759+02**

Zammad Rails Console

Loading production environment (Rails 6.1.7.6)
irb(main):001:0> Time.zone
=> #<ActiveSupport::TimeZone:0x00007fddfeacbbb8 @name="UTC", @tzinfo=#<TZInfo::DataTimezone: Etc/UTC>, @utc_offset=nil>
irb(main):002:0> Time.zone.now
=> Wed, 19 Jun 2024 13:00:58.289481063 UTC +00:00
irb(main):003:0> Ticket.find(45356)
=>
#<Ticket:0x00007fddfc8f3e00
 id: 45356,
 group_id: 3,
 priority_id: 2,
 state_id: 2,
 organization_id: 3,
 number: "1745104",
 title: "Test Ticket at - 14:58",
 owner_id: 1,
 customer_id: 17187,
 note: nil,
 first_response_at: nil,
 first_response_escalation_at: nil,
 first_response_in_min: nil,
 first_response_diff_in_min: nil,
 close_at: nil,
 close_escalation_at: nil,
 close_in_min: nil,
 close_diff_in_min: nil,
 update_escalation_at: nil,
 update_in_min: nil,
 update_diff_in_min: nil,
 last_contact_at: Wed, 19 Jun 2024 10:58:13.527382000 UTC +00:00,
 last_contact_agent_at: nil,
 last_contact_customer_at: Wed, 19 Jun 2024 10:58:13.527382000 UTC +00:00,
 last_owner_update_at: nil,
 create_article_type_id: 5,
 create_article_sender_id: 2,
 article_count: 1,
 escalation_at: nil,
 pending_time: nil,
 type: nil,
 time_unit: nil,
 preferences: {},
 updated_by_id: 17187,
 created_by_id: 17187,
 created_at: Wed, 19 Jun 2024 10:58:13.431759000 UTC +00:00,
 updated_at: Wed, 19 Jun 2024 10:58:13.648995000 UTC +00:00,
 marke: "",
 grund: "",
 kundennummer: "",
 artikel: "",
 artikelid: nil,
 customer_type: "",
 serialno: "",
 kostenaufwand: "",
 servicelevel: "",
 kostenbetrag: "",
 versand: "",
 last_close_at: nil>
irb(main):004:0>

Viewing all articles
Browse latest Browse all 6761

Trending Articles