Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #14436
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.php |
| Subject | Re: Dealing with timestamps from different timezones - general approach for basic saving? |
| Date | Fri, 31 Oct 2014 05:33:48 +0100 |
| Organization | PointedEars Software (PES) |
| Lines | 60 |
| Message-ID | <12869065.30PDesOKB2@PointedEars.de> (permalink) |
| References | <cd058cd0-6ace-447c-b4cf-482117630dc0@googlegroups.com> <m2ovkq$1c3$1@dont-email.me> <3237691.dGveQkY2Hi@PointedEars.de> <m2tghg$vpt$1@dont-email.me> <1678143.gufaXuZXlV@PointedEars.de> <m2uelb$ld2$1@dont-email.me> |
| Reply-To | Thomas 'PointedEars' Lahn <usenet@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| X-Trace | solani.org 1414730028 26230 eJwFwYEBwDAEBMCVIjw6juD3H6F3UBfvMIcbCLpKvs1jeluHhrf4xOqGD8hAbDFPrxWHuj8VtRGd (31 Oct 2014 04:33:48 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Fri, 31 Oct 2014 04:33:48 +0000 (UTC) |
| User-Agent | KNode/4.14.1 |
| X-User-ID | eJwNy8kVACEIBNGUZJoGDMdhyT8EPdTpvyJMLF2NphzOCd0seK+RAMeR8AxudOBD6Xlpyvmj5OnqKaijV7DeeAE+khUQ |
| Cancel-Lock | sha1:OxItGMLm6IJbR3fvIVEstKfvecE= |
| X-NNTP-Posting-Host | eJwNysEBwCAIA8CVTAORrlOI+49g731JQb1DqciTp7cx/LIGMPkqCm6Ey4Q98t+4Ss/CEs8FGjkQoA== |
| Mail-Copies-To | usenet@PointedEars.de |
| Xref | csiph.com comp.lang.php:14436 |
Show key headers only | View raw
Jerry Stuckle wrote: > […] Thomas […] Lahn wrote: >> Jerry Stuckle wrote: >>> […] Thomas […] Lahn wrote: >>>> Jerry Stuckle wrote: >>>>> 1. Ask for their timezone and save it in a cookie (an extra operation >>>>> on their part) >>>> Or local storage. For privacy, in a server-side session. Could be in >>>> a database. >>> And how are you going to do that unless they sign in? >> >> 1. STFW for “Local Storage”. >> >> 2. Server-side (PHP) sessions set a cookie with a session ID, but the >> privacy-critical payload is stored on the server. No sign-in >> necessary. > > And just how is he supposed to get the timezone from your answer? Those who can read and have not closed their mind have surmised by now that instead of saving the timezone *as provided by the user* in a cookie *as you proposed*, it could be saved in Local Storage or in a server-side session instead, whereas, with PHP at least, the session data could be held in a database. > BTW - what's wrong with storing the timezone in a cookie? There isn't > any security issue here - if the user changes the contents of the > cookie, it will just display the wrong time for him. Once you have looked deeper into those issues, you will have realized that *any* personal information is a matter of *privacy*. Security is a different concept that you were the first to mention here, confusing the issue. >>>>> 2. Use javascript to fetch the user's timezone and display it >>>>> accordingly (off topic in a PHP newsgroup) >>>> It would be the *system’s* timezone, which is why it is error-prone. >>> It is the user's system - not the server system. >> *sigh* I know. Nobody but you, now, referred to the server in *that* >> regard. The point here is, it would be not the user’s timezone, but that >> of the local computer system. Big difference. > > Yes, and I don't know about you, but people keep their local system > timezone to the one they want their time displayed in. Iff they are aware of the issue and able to do something about it. That’s the point. > Now why don't you crawl back into your little hole. But please don't > insert your head where the sun doesn't shine - the point might perforate > your colon. It is fortunate that your vocabulary forms an empty intersection with mine. -- PointedEars Zend Certified PHP Engineer Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Dealing with timestamps from different timezones - general approach for basic saving? e.blumstengel@googlemail.com - 2014-10-28 12:42 -0700
Re: Dealing with timestamps from different timezones - general approach for basic saving? Jerry Stuckle <jstucklex@attglobal.net> - 2014-10-28 16:51 -0400
Re: Dealing with timestamps from different timezones - general approach for basic saving? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-10-30 08:14 +0100
Re: Dealing with timestamps from different timezones - general approach for basic saving? Jerry Stuckle <jstucklex@attglobal.net> - 2014-10-30 10:04 -0400
Re: Dealing with timestamps from different timezones - general approach for basic saving? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-10-30 22:38 +0100
Re: Dealing with timestamps from different timezones - general approach for basic saving? Jerry Stuckle <jstucklex@attglobal.net> - 2014-10-30 18:38 -0400
Re: Dealing with timestamps from different timezones - general approach for basic saving? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-10-31 05:33 +0100
Re: Dealing with timestamps from different timezones - general approach for basic saving? Jerry Stuckle <jstucklex@attglobal.net> - 2014-10-31 09:51 -0400
Re: Dealing with timestamps from different timezones - general approach for basic saving? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-01 09:31 +0100
Re: Dealing with timestamps from different timezones - general approach for basic saving? Jerry Stuckle <jstucklex@attglobal.net> - 2014-11-01 09:31 -0400
drifted into ABUSE: Re: Dealing with timestamps bill <william@TechServSys.com> - 2014-11-01 11:21 -0400
Re: drifted into ABUSE: Re: Dealing with timestamps Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-01 17:04 +0100
Re: drifted into ABUSE: Re: Dealing with timestamps Jerry Stuckle <jstucklex@attglobal.net> - 2014-11-01 21:32 -0400
Re: drifted into ABUSE: Re: Dealing with timestamps Tim Streater <timstreater@greenbee.net> - 2014-11-02 09:27 +0000
Re: Dealing with timestamps from different timezones - general approach for basic saving? Denis McMahon <denismfmcmahon@gmail.com> - 2014-10-29 01:50 +0000
csiph-web