localtz() function doesnt work properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
YAQL |
Fix Released
|
Medium
|
Radovan Pieter |
Bug Description
Hi, i came across problem with localtz() function. Per your documentation I understand localtz() function returns timezone information by returning offset seconds to UTC TZ.
But in code there's bad if statement (line 325: https:/
You should better use time.localtime(
- We have usecase where we use yaql localtz() to get current time: now(offset=
-- But this approach is not correct now because it now return DST time (so +1hour to real time).
Issue i reffered to: https:/
----
Closes-Bug: #2052593
description: | updated |
description: | updated |
Changed in yaql: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Radovan Pieter (the-rdvn) |
description: | updated |
Reviewed: https:/ /review. opendev. org/c/openstack /yaql/+ /908288 /opendev. org/openstack/ yaql/commit/ 269f9669965a6d7 57ff8aaa6683f37 b8e9a0f27d
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 269f9669965a6d7 57ff8aaa6683f37 b8e9a0f27d
Author: Radovan Pieter <email address hidden>
Date: Wed Feb 7 12:09:27 2024 +0100
Fix localtz() function
Closes-Bug: #2052593 edba94ff502cd06 e6cba60a4d0
Change-Id: I739b44829202f0