From 27cbfc1bd5b0f80de5d5968c8b1965c2252b23c1 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Tue, 16 Dec 2008 22:57:17 +0000 Subject: [PATCH] Add timezone to the possible fields in a timespec. (closes issue #14028) Reported by: mostyn Patches: timezone-v2.patch uploaded by mostyn (license 398) (with additional code guideline fixes and a memory leak fix by me - license 14) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@164976 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- CHANGES | 8 ++ configs/extensions.conf.sample | 2 +- doc/api-1.6.2-changes.txt | 6 + funcs/func_logic.c | 2 + include/asterisk/pbx.h | 17 +++ main/pbx.c | 52 ++++++-- utils/extconf.c | 236 ++++++++++++++++----------------- 7 files changed, 192 insertions(+), 131 deletions(-) create mode 100644 doc/api-1.6.2-changes.txt diff --git a/CHANGES b/CHANGES index 4d55a2a49b..c2fd95a339 100644 --- a/CHANGES +++ b/CHANGES @@ -90,8 +90,16 @@ Miscellaneous which are interpreted as relative to the astvarlibdir setting in asterisk.conf. * All deprecated CLI commands are removed from the sourcecode. They are now handled by the new clialiases module. See cli_aliases.conf.sample file. + * Times within timespecs are now accurate down to the minute. This is a change + from historical Asterisk, which only provided timespecs rounded to the nearest + even (read: evenly divisible by 2) minute mark. * The realtime switch now supports an option flag, 'p', which disables searches for pattern matches. + * In addition to a time range and date range, timespecs now accept a 5th optional + argument, timezone. This allows you to perform time checks on alternate + timezones, especially if those daylight savings time ranges vary from your + machine's native timezone. See GotoIfTime, ExecIfTime, IFTIME(), and timed + includes. Asterisk Manager Interface -------------------------- diff --git a/configs/extensions.conf.sample b/configs/extensions.conf.sample index 0b82f3b3aa..167ae372cf 100644 --- a/configs/extensions.conf.sample +++ b/configs/extensions.conf.sample @@ -185,7 +185,7 @@ TRUNKMSD=1 ; MSD digits to strip (usually 1 or 0) ; ; Timing list for includes is ; -;