🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by p mGHCn Wed, 21 May 2003 18:17
Timezone problem
#65414
Author: p mGHCn
Date: Wed, 21 May 2003 18:17
26 lines
2511 bytes
Dear All,

I have a problem related to Time Zone. It is because some reader post in a different time zone other than ours, therefore, sometimes
their time is almost 8 hours behind. As you may know, most ppl like to sort the articles by time. If this problem occurs, some
article may be ignored by most viewer. Is there any method to force the system change the article's time zone to server's one?

Regards,
Michael

--
���� [GHC]
101199448
webmaster@pilotwarezhk.org
���W�q�x�Ghttp://palmfaq.org:8000/listen.pls
�]���w�ɶ}��^
���Ȱ��D�Gnews://palmfaq.org/public.administration
�º�j���Gnews://palmfaq.org/public.person.michael


          * ~ let us linux ~ *


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----
Re: Timezone problem
#65415
Author: Russ Allbery
Date: Wed, 21 May 2003 19:05
17 lines
1745 bytes
�p�� �mGHC�n <@netvigator.com> writes:

> I have a problem related to Time Zone. It is because some reader post in
> a different time zone other than ours, therefore, sometimes their time
> is almost 8 hours behind. As you may know, most ppl like to sort the
> articles by time. If this problem occurs, some article may be ignored by
> most viewer. Is there any method to force the system change the
> article's time zone to server's one?

Why isn't their sorting by time taking the time zone into account?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Timezone problem
#65418
Author: J.B. Moreno
Date: Wed, 21 May 2003 19:31
33 lines
2070 bytes
In article <3ecc95b6$1@lungfunggdn.org>, 
 �p�� �mGHC�n <@netvigator.com> wrote:

> Dear All,
> 
> I have a problem related to Time Zone. It is because some reader post in a
> different time zone other than ours, therefore, sometimes
> their time is almost 8 hours behind.

The time in the Date header should include a time zone offset, so that
shouldn't be a problem.

> As you may know, most ppl like to sort the articles by time. If this
> problem occurs, some article may be ignored by most viewer. Is there
> any method to force the system change the article's time zone to
> server's one?

Are you running the server?  What server software are you using?  Are
you planning on doing something like changing:

   Date: 22 May 2003 02:17:42 +0800

to

   Date: 22 May 2003 04:17:42 +0400

or are you going to change the date to arrival time (I hope not, that
would be a /very/ bad thing to do if the articles started leaking back
into the main body of usenet somewhere along the line).

-- 
J.B. Moreno
Re: Timezone problem
#65421
Author: DS
Date: Wed, 21 May 2003 22:05
65 lines
3471 bytes
"�p�� �mGHC�n" <@netvigator.com> wrote in
news:3ecc95b6$1@lungfunggdn.org: 

> Dear All,
> 
> I have a problem related to Time Zone. It is because some reader post
> in a different time zone other than ours, therefore, sometimes their
> time is almost 8 hours behind. As you may know, most ppl like to sort
> the articles by time. If this problem occurs, some article may be
> ignored by most viewer. Is there any method to force the system change
> the article's time zone to server's one? 
> 
> Regards,
> Michael
> 

Michael,

I just wanted to thank you for posting this question. It is something I 
did not account for in the newsreader I am coding.

Now to ask the admins. I'm sure the answer to this is no, but, would it 
be acceptable, in my client, to display the date/time referenced to the 
user's timezone ? 

Currently, I'm not using the GMT difference part of the time/date stamp 
field. I see several possibilities:

1) Do nothing and don't worry about it.

2) Alter the date field in my database file's to be in reference to one 
time zone, either the user timezone or GMT. This is the easiest coding 
solution with the fewest 'trickle down' effects. When receiving a header 
'dataset' it's parsed into it's relevant field's then stuff into the 
database, so it's just a couple more line's of code to add to the 
processing.

or 

3) Leave the date/time data alone in the database and make the timezone 
difference adjustment's only when I'm displaying the data. Doing the 
adjustment for display-only purposes may sound easy. I currently store 
the message size as a long integer, as it comes from the XOVER data, and 
upon a request to display the header, it takes the size number from the 
database and formats it into x Bytes, x.x KBytes, or x.x MBytes, and this 
string info is passed to be displayed.

This solution is much more difficult to implement though. Is the yyyymmdd 
hhmmss -(+)x GMT a standard time/date format ? If not, I would have to 
then add another field in the group database to store the GMT adjustment, 
AND additional processing to display it. I can't even think of how to 
sort this.

Well maybe, I could instead of storing the GMT adjustment, just add a DB 
field for GMT of each message and during XOVER, calculate and store the 
GMT of each message. This field would never be displayed, but used only 
for sorting on time/date. If I had to implement a solution, this would 
probably be it.

Any opinions ?

Regards,

DS
Re: Timezone problem
#65422
Author: Russ Allbery
Date: Wed, 21 May 2003 22:26
15 lines
1600 bytes
DS <t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t> writes:

> Now to ask the admins. I'm sure the answer to this is no, but, would it
> be acceptable, in my client, to display the date/time referenced to the
> user's timezone ?

Sure.  Gnus converts all timestamps to the user's local time zone for
display.  (It also provides a way to get the raw date if the user wants.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Timezone problem
#65423
Author: J.B. Moreno
Date: Thu, 22 May 2003 01:39
22 lines
1746 bytes
In article <Xns9382B800D1F1Cidispcom@24.48.107.54>, 
 DS <t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t> wrote:

> Now to ask the admins. I'm sure the answer to this is no, but, would it 
> be acceptable, in my client, to display the date/time referenced to the 
> user's timezone ? 

I'm not sure why you'd think the answer would be no, I'd say it's
almost automatically "yes" (although the original header should be
available somehow).

I've got three newsreaders up at the moment, they all show the time
adjusted for my timezone.

> Currently, I'm not using the GMT difference part of the time/date stamp 
> field. I see several possibilities:

Leave it alone in your database, adjust it for display.

-- 
J.B. Moreno
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads