|
Posted by Rami Elomaa on 07/08/07 19:37
Jerry Stuckle kirjoitti:
> Rami Elomaa wrote:
>> Jerry Stuckle kirjoitti:
>>> Rami Elomaa wrote:
>>>> ZeldorBlat kirjoitti:
>>>> > If you're converting the time to a "unified time zone" why do you
>>>> care
>>>>> what timezone they're in? Why would you be recording the time from
>>>>> the client in your database?
>>>>
>>>> Not record, just show. Naturally it makes sense to record a global
>>>> time timestamp, like GMT, but people still like to see a time
>>>> displayed in their local timezone, so the OP wants to know how to
>>>> get it and then convert GMT to local time, just for _displaying_ it
>>>> to user. It's common localization practise. Wikipedia for one does
>>>> this.
>>>>
>>>
>>> I've got two analog clocks on the walls, a watch on my wrist, and a
>>> digital clock on my toolbar. What makes you think I need your site
>>> to tell me what time it is?
>>>
>>> As for Wikipedia - I don't see any clock on the pages when I view them.
>>>
>>> You can include a clock if you want - but it looks stupid.
>>>
>>
>> Oh good grief... Not a clock, TIME! Like for example: an auction that
>> ends on 12:00 am GMT time. I want to see it converted into my local,
>> Finland timezone, which would be 10:00am.
>>
>
> That's not what we're talking about here, Rami.
No, that's why I said it was an example. That was just an example of a
possible situation where a user might want to see a timestamp converted
to their local time.
> And I want to see how many hours and minutes before it ends.
So it was not very good example. It was the first thing that I could
think of.
The original case was to let the user see when they last time logged in.
And the point of it all was how to aquire local timezone to display the
timestamp (which is stored in the database, perhaps as GMT) converted
into users local timezone. And this is what _I've_ been talking about
the whole time, believe it or not.
Please bare with me. If I don't make sense sometimes (or most of the
time) it's just because English isn't my native language. I do my best
to express myself but sometimes I obviously fail.
--
Rami.Elomaa@gmail.com
"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze
Navigation:
[Reply to this message]
|