removed: dependencies to 'tz' system structure

now we are using PT::Date from pikotools



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@839 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-05-26 23:04:49 +00:00
parent 5b845f1d03
commit 1b858f5782
41 changed files with 651 additions and 764 deletions

View File

@@ -104,7 +104,7 @@ void Request::RequestStarts()
// value can be null
void Request::SetCookie(const char * name, const char * value, tm * expires)
void Request::SetCookie(const char * name, const char * value, PT::Date * expires)
{
headers << "Set-Cookie: " << name << "=";
@@ -114,7 +114,7 @@ void Request::SetCookie(const char * name, const char * value, tm * expires)
headers << "\"\"";
if( expires )
headers << "; expires=" << DateToStrCookie(expires) << " GMT";
headers << "; expires=" << DateToStrCookie(*expires) << " GMT";
headers << "; path=/; domain=" << config->base_url << "\r\n";
@@ -129,12 +129,12 @@ void Request::SetCookie(const char * name, const char * value, tm * expires)
void Request::SetCookie(const char * name, long value, tm * expires)
void Request::SetCookie(const char * name, long value, PT::Date * expires)
{
headers << "Set-Cookie: " << name << "=" << value;
if( expires )
headers << "; expires=" << DateToStrCookie(expires) << " GMT";
headers << "; expires=" << DateToStrCookie(*expires) << " GMT";
headers << "; path=/; domain=" << config->base_url << "\r\n";
}