Subj : Commit f9ad15e8 might need more work :)
To   : Digital Man
From : deon
Date : Mon Dec 23 2024 07:10 pm

 Re: Commit f9ad15e8 might need more work :)
 By: deon to Digital Man on Mon Dec 23 2024 05:11 pm

Howdy,

>  > I'm not sure how you posted that message, but the hex value there (for
>  > when_written.time) is a time_t not the bit-field-endoded date that's used
>  > in commit 4bb08eded. So something's amiss.

Oh boy... So I just had another look at this:

My test system (which is PST for OS and Sync):

But to be sure, I just posted another message:

X-FTN-PID        Synchronet 3.20a-Linux master/4bb08eded Dec 23 2024 GCC 10.2.1
when_written     6764CF1E FE20 Fri Dec 20 12:57:50 2024 UTC-8:00
when_imported    6769155F 41E0 Mon Dec 23 18:46:39 2024 PST

A few things here:

a) when_written
The file that the date is based off of:

root@ansitex-dev# stat -c '%x' text/extra/100219b
2024-12-19 17:57:50.286025007 -0800

To confirm:
root@ansitex-dev# jsexec -n tools/test-strftime
File Date: 1734659870
Thu, 19 Dec 2024 17:57:50 -0800

And the contents of test-strftime.js

var f = new File('text/extra/100219b');
var fdate = f.date;
writeln('File Date: '+fdate);
writeln(strftime("%a, %d %b %Y %H:%M:%S %z",fdate));

So how is it getting when_written_time Fri Dec 20 12:57:50 2024?

b) when_imported_time
I dont set this value, so it is automatically calculated right?

root@ansitex-dev# date
Sun Dec 22 23:48:39 PST 2024

root@ansitex-dev# ls -al /etc/localtime
lrwxrwxrwx 1 root root 39 Dec 22 18:06 /etc/localtime -> /usr/share/zoneinfo/America/Los_Angeles

Startup:
synchronet: term Compiled master/4bb08eded Dec 23 2024 10:39 with GCC 10.2.1
synchronet: web  Synchronet Web Server Version 3.20a
synchronet: web  Compiled master/4bb08eded Dec 23 2024 10:39 with GCC 10.2.1
synchronet: term Initializing on Sun Dec 22 23:34:25 2024 with options: 2c02
synchronet: web  Initializing on Sun Dec 22 23:34:25 2024 with options: 810

Where is it getting Mon Dec 23 18:46:39 from ? (Which coincidently, the AU local time right now.)


...����

---
� Synchronet � AnsiTEX bringing back videotex but with ANSI