PDA

View Full Version : ioA Newday Problems


goldilow
10-02-2004, 02:32 PM
I have the newday fuction up and working great, the only problem i have with it, is the time that it creates the new day dir's.. I want to make them create around 1am localtime but they create at 6:01am local time. Here are my settings, any help would be greatly appreciated.


[ ioA.cfg ]

Use_Local_Time_Instead_of_UTC = 1

[Newdate]
Newdate_0 = "np3|MP3 TODAY|D:\shit\mp3\%M%D|/MP3/%M%D|d:\ftp\TODAY-MP3|0|0|0|1|777"
Newdate_1 = "mp3|MP3 YESTERDAY|D:\shit\mp3\%M%D|/MP3/%M%D|d:\ftp\YESTERDAY-MP3|0|0|-1|0|777"
Newdate_Log = ""%area" "%vfs" "%desc" "%phys""

[ioftpd.ini]

Newday = 1 22 * * EXEC D:\ioFTPD\scripts\ioA\ioA.exe NEWDATE

[ioA.debug]

10-01-2004 18:01:15 ioA - 1.2.0
10-01-2004 18:01:15 NEWDATE - UTC time now: 10012004-22:01:15
10-01-2004 18:01:15 NEWDATE - Local time now: 10012004-18:01:15
10-01-2004 18:01:15 NEWDATE - !vfs:chattr 1 "d:\ftp\TODAY-MP3" "/MP3/1001"
10-01-2004 18:01:15 NEWDATE - Logged: "np3" "/MP3/1001" "MP3 TODAY" "D:\shit\mp3\1001"
10-01-2004 18:01:15 NEWDATE - UTC time now: 10012004-22:01:15
10-01-2004 18:01:15 NEWDATE - Local time now: 10012004-18:01:15
10-01-2004 18:01:15 NEWDATE - !vfs:chattr 1 "d:\ftp\YESTERDAY-MP3" "/MP3/0930"
10-01-2004 18:01:15 BENCHMARK - Time to run command: NEWDATE was 140ms

[END]

WarC
10-02-2004, 03:18 PM
18:01 for me is pm, dunno if I was tought wrong in school :)

Therefore I dunno if you want to make it 01am (ie in the middle of the night) or 01pm (ie during daytime).

Looks like 4 hours difference between utc and localtime.
If in the middle of the night adjust your scheduler to fit:
NewDay = 1 04 * *

If in the middle of the day:
NewDay = 1 16 * *


If any other way. just use your head and do some math. You got when its run it utc and you see your localtime. just adjust when its supposed to be run.