Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #14441

Re: Dealing with timestamps from different timezones - general approach for basic saving?

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 2014-11-01 09:31 +0100
Organization PointedEars Software (PES)
Message-ID <2211675.ENi9V076Wl@PointedEars.de> (permalink)
References (3 earlier) <m2tghg$vpt$1@dont-email.me> <1678143.gufaXuZXlV@PointedEars.de> <m2uelb$ld2$1@dont-email.me> <12869065.30PDesOKB2@PointedEars.de> <m3045c$bk7$1@dont-email.me>

Show all headers | View raw


Jerry Stuckle wrote:

> On 10/31/2014 12:33 AM, the troll Thomas 'Pointed Head' Lahn wrote:
>> 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.
> 
> Which still doesn't answer the question.  How does it get the timezone
> from the user?  Does the user have to answer a question (another added
> hurdle for the user to jump through)?

See the markings above.  It was *your* idea, so *you* must answer that 
question.

-- 
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


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