Module: kamailio
Branch: master
Commit: 3efa32c9cdfc7a7bdc913724fba92f7b7a76434c
URL:
https://github.com/kamailio/kamailio/commit/3efa32c9cdfc7a7bdc913724fba92f7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-11-27T15:38:56+01:00
lib/srdb1 - set default datetime value to 2000-01-01
- 1900 is before the start of epoch and can result in unexpected
behaviour with some time related functions
---
Modified: lib/srdb1/schema/entities.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/3efa32c9cdfc7a7bdc913724fba92f7…
Patch:
https://github.com/kamailio/kamailio/commit/3efa32c9cdfc7a7bdc913724fba92f7…
---
diff --git a/lib/srdb1/schema/entities.xml b/lib/srdb1/schema/entities.xml
index c14a801..b63d5ed 100644
--- a/lib/srdb1/schema/entities.xml
+++ b/lib/srdb1/schema/entities.xml
@@ -28,6 +28,6 @@
<!ENTITY DEFAULT_Q "1.0">
<!ENTITY DEFAULT_CALLID "Default-Call-ID">
<!ENTITY DEFAULT_CSEQ "1">
-<!ENTITY DEFAULT_DATETIME "1900-01-01 00:00:01"> <!-- postgresql
doesn't like 0000-00-00 00:00:00 -->
+<!ENTITY DEFAULT_DATETIME "2000-01-01 00:00:01"> <!-- postgresql
doesn't like 0000-00-00 00:00:00 -->
<!ENTITY DEFAULT_FLAGS "0">
<!ENTITY KAMAILIO_MOD_DOC "http://www.kamailio.org/docs/modules/devel/">