[rrd-users] Re: Different timezones
Owen DeLong
owen at dixon.delong.sj.ca.us
Sun Jan 30 18:39:08 MET 2000
> Yesterday you sent me mail regarding Re: [rrd-users] Re: Different timezones:
>
> *>
> *> Tobi,
> *> That's a completely accurate and relatively useuless answer.
> *>
> *> The problem comes in how do you KNOW what to set the TZ to if
> *> you are running a web server. The only mechanism I've found is to use
> *> Javascript. Currently, I'm using the following code in one of my non-
> *> rrd pages to deal with times displayed in a table:
> *>
> *> If anyone has a better solution, I'd love to have it. This is the
> *> best I've been able to come up with. For use with RRD, it should
> *> be possible to take the technique I've used above (the onLoad
> *> function specifically) and modify it to return the TZ variable
> *> to the CGI script. You could even rig it so that if there was
> *> no TZ for variable, a form was sent back with all of the fields
> *> hidden which would submit itself and include the offset or
> *> TZ name (also available from the Date() object (sort of).
>
> :-) one interesting thing to look at would be the request header ... does it
> not contain the local time of the browser ?
>
Snoop sez:
irkutsk -> asilomar HTTP GET /icons/binary.gif HTTP/1.0
0: 0000 0c07 ac00 0800 201f 9fad 0800 4500 ........ .....E.
16: 0185 1a87 4000 ff06 e9bf c09f 0a04 d101 .... at ...........
32: da86 84e4 0050 e51b 4692 f8e3 1dc1 5018 .....P..F.ø...P.
48: 2238 d79d 0000 4745 5420 2f69 636f 6e73 "8....GET /icons
64: 2f62 696e 6172 792e 6769 6620 4854 5450 /binary.gif HTTP
80: 2f31 2e30 0d0a 5265 6665 7265 723a 2068 /1.0..Referer: h
96: 7474 703a 2f2f 6173 696c 6f6d 6172 2e65 ttp://asilomar.e
112: 786f 6475 732e 6e65 742f 0d0a 436f 6e6e xodus.net/..Conn
128: 6563 7469 6f6e 3a20 4b65 6570 2d41 6c69 ection: Keep-Ali
144: 7665 0d0a 5573 6572 2d41 6765 6e74 3a20 ve..User-Agent:
160: 4d6f 7a69 6c6c 612f 342e 3620 5b65 6e5d Mozilla/4.6 [en]
176: 2028 5831 313b 2049 3b20 5375 6e4f 5320 (X11; I; SunOS
192: 352e 3620 7375 6e34 6d29 0d0a 5072 6167 5.6 sun4m)..Prag
208: 6d61 3a20 6e6f 2d63 6163 6865 0d0a 486f ma: no-cache..Ho
224: 7374 3a20 6173 696c 6f6d 6172 2e65 786f st: asilomar.exo
240: 6475 732e 6e65 740d 0a41 6363 6570 743a dus.net..Accept:
256: 2069 6d61 6765 2f67 6966 2c20 696d 6167 image/gif, imag
272: 652f 782d 7862 6974 6d61 702c 2069 6d61 e/x-xbitmap, ima
288: 6765 2f6a 7065 672c 2069 6d61 6765 2f70 ge/jpeg, image/p
304: 6a70 6567 2c20 696d 6167 652f 706e 670d jpeg, image/png.
320: 0a41 6363 6570 742d 456e 636f 6469 6e67 .Accept-Encoding
336: 3a20 677a 6970 0d0a 4163 6365 7074 2d4c : gzip..Accept-L
352: 616e 6775 6167 653a 2065 6e0d 0a41 6363 anguage: en..Acc
368: 6570 742d 4368 6172 7365 743a 2069 736f ept-Charset: iso
384: 2d38 3835 392d 312c 2a2c 7574 662d 380d -8859-1,*,utf-8.
400: 0a0d 0a ...
Which extracts out to:
GET /icons/binary.gif HTTP/1.0
Referer: http://asilomar.exodus.net/
Connection: Keep-Alive
User-Agent: Mozilla/4.6 [en] (X11; I; SunOS 5.6 sun4m)
Pragma: no-cache
Host: asilomar.exodus.net
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8
I don't see a timezone in there anywhere. Do you?
Owen
----- End Included Message -----
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
More information about the rrd-users
mailing list