[Bug 1945345] Re: mktime throws overflow error with daylight saving on

Paul White 1945345 at bugs.launchpad.net
Sat Oct 19 12:40:56 UTC 2024


Invalidating superfluous Ubuntu task.

** Changed in: ubuntu
       Status: New => Invalid

** Tags added: focal

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1945345

Title:
  mktime throws overflow error with daylight saving on

Status in Ubuntu:
  Invalid
Status in glibc package in Ubuntu:
  New

Bug description:
  python's time.mktime calls onto os native mktime(). It throws overflow
  error for time_structs having daylight saving.

  def get_tz_time_from_epoch(ctz, epoch):

      dt = datetime.datetime.fromtimestamp(epoch, pytz.timezone(ctz))
    
      return time.mktime(dt.timetuple())

  
  this python function work fine on Ubuntu 18.04 but throws error on Ubuntu20.04.3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1945345/+subscriptions




More information about the foundations-bugs mailing list