MGR: Convert Google Chrome browser time to UNIX time

svn path=/trunk/boinc/; revision=23635
This commit is contained in:
Charlie Fenton 2011-06-04 02:03:02 +00:00
parent 86205059cd
commit 4526ae487a
2 changed files with 14 additions and 0 deletions

View File

@ -3275,3 +3275,9 @@ David 3 Jun 2011
sched/
sched_version.cpp
Charlie 3 Jun 2011
- MGR: Convert Google Chrome browser time (microseconds since
January 1, 1601) to UNIX time (seconds since January 1, 1970)
clientgui/
browser.cpp

View File

@ -769,10 +769,18 @@ static int find_site_cookie_chrome(
&expires
);
sscanf( argv[4],
#ifdef _WIN32
"%I64d",
#else
"%ld",
#endif
&httponly
);
// Convert Google Chrome time (microseconds since January 1, 1601)
// to UNIX time (seconds since January 1, 1970)
expires = (expires / 1000000) - 11644473600LL;
// is this a real cookie?
// temporary cookie? these cookies do not trickle back up
// to the jscript interface, so ignore them.