summaryrefslogtreecommitdiffstats
path: root/modules/metadata/mod_usertrack.c
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2000-01-06 20:19:39 +0100
committerRyan Bloom <rbb@apache.org>2000-01-06 20:19:39 +0100
commit4870d9eb75dcd105b06014e734f96d21d0d1df3c (patch)
treed90f346b908b9ea8a672a609df1794f843f02390 /modules/metadata/mod_usertrack.c
parentFix a minor bug that would cause us to return FORBIDDEN for all requests. (diff)
downloadapache2-4870d9eb75dcd105b06014e734f96d21d0d1df3c.tar.xz
apache2-4870d9eb75dcd105b06014e734f96d21d0d1df3c.zip
Next pass at the time functions. This defines an ap_ansi_time_t which has
a specific format (seconds since 0:00:00 Jan 1, 1970). I also renamed the (get|set)_curtime functions to (get|set)ansitime. This should make more sense, and be a bit more intuitive. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84400 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/metadata/mod_usertrack.c')
-rw-r--r--modules/metadata/mod_usertrack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/metadata/mod_usertrack.c b/modules/metadata/mod_usertrack.c
index 01fd4528db..620741680e 100644
--- a/modules/metadata/mod_usertrack.c
+++ b/modules/metadata/mod_usertrack.c
@@ -188,7 +188,7 @@ static void make_cookie(request_rec *r)
ap_size_t retsize;
ap_make_time(&when, r->pool);
- ap_get_curtime(when, &req_time);
+ ap_get_ansitime(when, &req_time);
#ifndef MILLENIAL_COOKIES
/*
* Only two-digit date string, so we can't trust "00" or more.
@@ -197,11 +197,11 @@ static void make_cookie(request_rec *r)
*/
if (req_time + cls->expires > 946684799) {
- ap_set_curtime(when, 946684799);
+ ap_set_ansitime(when, 946684799);
}
else
#endif
- ap_set_curtime(when, req_time + cls->expires);
+ ap_set_ansitime(when, req_time + cls->expires);
/* Cookie with date; as strftime '%a, %d-%h-%y %H:%M:%S GMT' */
ap_strftime(temp_cookie, &retsize, MAX_STRING_LEN, "%a, %d-%h-%y %H:%M:%S GMT", when);