Thread View: news.software.nntp
5 messages
5 total messages
Started by Charlie Clockchanger
Thu, 08 Feb 2001 06:50
RFE: INN readers.conf localtime: true + localtimezone:
Author: Charlie Clockchanger
Date: Thu, 08 Feb 2001 06:50
Date: Thu, 08 Feb 2001 06:50
25 lines
2371 bytes
2371 bytes
Ho ho ho! Um, so, like, I'm wondering what people think of the idea of being able to override the swerver default timezone, in a situation where newer INN will see fit to add the Date: header when not supplied by the client, and the localtime: parameter is set to true in the config file readers.conf, wherein the swerver-suppwied header that is added is not in GMT/UTC but instead in the time thought to be local. The reason for this is that us huge multi-national monopolistic telcos have our tentacles in several timezones, with smaller ISPs pointing their DNS newsswerver entries at our machine in a different timezone. At the moment, I'm able to use the virtualhost support to make the swerver seem somewhat more local to the reader, so I'd like to take things a step further and generate posting dates using the different timezone offsets that different customers may have. Does anyone see anything wrong, in principle, with this idea, other than its origin? I'm eyeballing the k0deZ to see if it would be a trivial enhancement, and it looks promising. This is mid-Nov 2.3 k0de I'm looking into, in case it's already been incorporated into -current and I'm re-inventing the wheel. Gratitudeness an' stuff
Re: RFE: INN readers.conf localtime: true + localtimezone:
Author: Russ Allbery
Date: Thu, 08 Feb 2001 20:13
Date: Thu, 08 Feb 2001 20:13
21 lines
1950 bytes
1950 bytes
Charlie Clockchanger <autocyberretributionmeowbot@plonQ.invalid> writes: > The reason for this is that us huge multi-national monopolistic telcos > have our tentacles in several timezones, with smaller ISPs pointing > their DNS newsswerver entries at our machine in a different timezone. > At the moment, I'm able to use the virtualhost support to make the > swerver seem somewhat more local to the reader, so I'd like to take > things a step further and generate posting dates using the different > timezone offsets that different customers may have. > Does anyone see anything wrong, in principle, with this idea, other > than its origin? Apart from setting timezones in C being a complete pain in the ass, no, not really. I guess the interface that would make the most sense would be a way to specify the local time zone in a readers.conf block in a string suitable for setenv(TZ, zone, 1). -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: RFE: INN readers.conf localtime: true + localtimezone:
Author: Charlie C0dewanker
Date: Fri, 09 Feb 2001 08:31
Date: Fri, 09 Feb 2001 08:31
21 lines
2418 bytes
2418 bytes
"'rra@stanford.edu'" <rra@stanford.edu> skrev i en nyhedsmeddelelse:ylpugtszl8.fsf@windlord.stanford.edu... :: > The reason for this is that us huge multi-national monopolistic telcos :: > have our tentacles in several timezones, with smaller ISPs pointing :: > their DNS newsswerver entries at our machine in a different timezone. :: > Does anyone see anything wrong, in principle, with this idea, other :: Apart from setting timezones in C being a complete pain in the ass, no, :: not really. I guess the interface that would make the most sense would be :: a way to specify the local time zone in a readers.conf block in a string :: suitable for setenv(TZ, zone, 1). So, boggling a little, it actually seems to work, with the swerver knowing where I'm now located. I suppose you're gonna want patches (including one other thing I'd been meaning to incorporate for some time) so that you can rewrite them properly? Just how portable are getenv() and setenv() anyway, since I wrote this only with an eye to giving results with Slowaris, and setenv() doesn't even have a man page there? Anyway, patches Real Soon Now[tm], this time for sure!
Re: RFE: INN readers.conf localtime: true + localtimezone:
Author: Andrew Gierth
Date: Fri, 09 Feb 2001 09:08
Date: Fri, 09 Feb 2001 09:08
16 lines
1742 bytes
1742 bytes
>>>>> "Charlie" == Charlie C0dewanker <autocyberretributionmeowbot@pl0nk.invalid> writes: Charlie> Just how portable are getenv() and setenv() anyway, since I Charlie> wrote this only with an eye to giving results with Slowaris, Charlie> and setenv() doesn't even have a man page there? getenv() is very portable (part of standard C and therefore exists even on non-Unix platforms). putenv() is portable (defined by all relevent Unix standards) setenv() is not. -- Andrew.
Re: RFE: INN readers.conf localtime: true + localtimezone:
Author: Russ Allbery
Date: Fri, 09 Feb 2001 10:02
Date: Fri, 09 Feb 2001 10:02
14 lines
1549 bytes
1549 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> writes: > getenv() is very portable (part of standard C and therefore exists even > on non-Unix platforms). > putenv() is portable (defined by all relevent Unix standards) > setenv() is not. setenv() is, however, guaranteed available inside INN. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
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