summaryrefslogtreecommitdiff
path: root/includes/session.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-06-20 11:03:23 +0000
committerfisharebest <fisharebest@gmail.com>2010-06-20 11:03:23 +0000
commite0c6d35d1258ffa85dc7a5892082073e46e4173a (patch)
treefff27f8a5c48f180dd22dfb432b2857ef7a6ed72 /includes/session.php
parent772c70240c6c1edf92f2b49d9546dba2c5a22acf (diff)
downloadwebtrees-e0c6d35d1258ffa85dc7a5892082073e46e4173a.tar.gz
webtrees-e0c6d35d1258ffa85dc7a5892082073e46e4173a.tar.bz2
webtrees-e0c6d35d1258ffa85dc7a5892082073e46e4173a.zip
Diffstat (limited to 'includes/session.php')
-rw-r--r--includes/session.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/includes/session.php b/includes/session.php
index cbb02e5835..6927ad538e 100644
--- a/includes/session.php
+++ b/includes/session.php
@@ -333,11 +333,10 @@ if ($MULTI_MEDIA) {
}
require WT_ROOT.'includes/functions/functions_date.php';
-define('WT_TODAY_JD', server_jd()); // Privacy calculations need to know today's date
-
-if (empty($PEDIGREE_GENERATIONS)) {
- $PEDIGREE_GENERATIONS=$DEFAULT_PEDIGREE_GENERATIONS;
-}
+// Use the server date to calculate privacy, etc.
+// Use the client date to show ages, etc.
+define('WT_SERVER_JD', timestamp_to_jd(time()));
+define('WT_CLIENT_JD', timestamp_to_jd(client_time()));
// Who are we?
define('WT_USER_ID', getUserId());