[OpenSIPS-Devel] [OpenSIPS/opensips] dd4541: check_time_rec(): Fix the timezone handling

Liviu Chircu noreply at github.com
Tue Jun 30 11:03:21 EST 2020


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: dd45419d0e49afeebce9c0a5cf84b63e0e05ca61
      https://github.com/OpenSIPS/opensips/commit/dd45419d0e49afeebce9c0a5cf84b63e0e05ca61
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M modules/cfgutils/cfgutils.c
    M modules/cfgutils/test/cfgutils.c

  Log Message:
  -----------
  check_time_rec(): Fix the timezone handling

Do not adjust the UNIX timestamp to the timezone, rather keep it intact
so the input times can be specified in local time, rather than UTC time.

Also rewrite all bad tests (and add new ones) so the above requirements
are met.





More information about the Devel mailing list