Subj : JS Object save_msg() To : Digital Man From : deon Date : Thu Dec 19 2024 00:58:17 Re: JS Object save_msg() By: Digital Man to deon on Tue Dec 17 2024 10:57 pm Howdy, > > Can you always get the timezone from the OS? > Could, yes, but prefer to give the sysop the option to be more specific. > > Why have a configured timezone at all? > Explained above. OK, fair enough. I guess I dont understand why a sysop would configure their OS timezone different to their BBS timezone. If they didnt have access to the OS configuration, then fair enough, but I would have thought that was a pretty rare/remote case - and in that case setting that scfg...Local Time Zone setting could be used to display the times in that timezone they wanted. > Your message came here as posted on: > "Wed Dec 18 2024 05:14 pm AEDT (30 minutes ago)" > If we only used "what the OS returns", your message would have been posted > on: "Wed Dec 18 2024 05:14 pm +11:00 (30 minutes ago)" Personally, I prefer the later. Its pretty absolute, where some folks may not know what AEDT/ACST/ACDT are. Anyway, while the OS might just give you the timezone UTC offset, a quick parse of /etc/localtime (on linux and mac at least) would give you the timezone string as well. Dont know if that is at all possible on Win. Personally I think that's better than a scenario where the time or time_t value is forced to a timezone that makes the usage of that value untrue. ....лоеп --- ю Synchronet ю AnsiTEX bringing back videotex but with ANSI .