btw really love the flexibility of Mystic... I looked at a few others
and it was definitely the best of the lot...
Hey g00r00, Admittedly, I'm only a few months into Mystic dev, but I did confirm with another sysop that DateSTR(UserLastOn,1) does produce some odd results... can you possibly take a look when you get a chance?
DateStr uses a DOS format timestamp. Are you sending it a DOS format or Unix format?
DateStr uses a DOS format timestamp. Are you sending it a DOS format or Unix format?
This is actually just from the 'bulls' mod for bulletins that's floating around:
if UserLastOn <= GetFileDate(Entry.Bullfile) then S:='[NEW]'
if UserLastOn > GetFileDate(Entry.Bullfile) then S:=' '
I'm just putting the DateStr() around the UserLastOn to see why it's not working... I am running Mystic on linux/rpi... is there something I need to configure? Thanks, for your help!
UserLastOn is a Unix format date and DateStr is for DOS format dates.
You could convert it from a Unix DOS though using the DateU2D conversion function:
DateStr(DateU2D(UserLastOn)...
In fairness to Clive, the version of documentation (mpl_112a36.doc) he
and I are working from explicitly state 'DateStr' & 'TimeStr' should be used to decode/format both USERFIRSTON & USERLASTON timestamps.
UserLastOn is a Unix format date and DateStr is for DOS format dates.
You could convert it from a Unix DOS though using the DateU2D conversion function:
DateStr(DateU2D(UserLastOn)...
Its noted in the whatsnew file for 1.12 (A39) release but probably not anywhere
else at the moment:
+ Record data changes for user database:
- First on and last on dates are now stored in Unix timestamp format.
- Expire, last password change, and last e-mail validation dates now
use
julian day number
In general the idea is to remove the old DOS format date stamps whenever any structural changes are done to records that still use them. They
are still all over the place though, as the structures change rarely.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 368 |
Nodes: | 16 (2 / 14) |
Uptime: | 87:37:17 |
Calls: | 7,895 |
Calls today: | 1 |
Files: | 12,968 |
Messages: | 5,792,158 |