Page 1 of 1
Ability to bump post-midnight chats to the previous day?
Posted: Fri Jan 12, 2007 1:11 am
by CaptainValor
I don't know if Adium has this feature currently, but is there a way to set the logging so that if one starts a chat say at 10 PM on a Friday, and the chat runs past midnight into Saturday, the chat is still saved under Friday? Ideally, one could to set a "cutoff" time (say, 4 AM) after which the chat is saved on that same day, but chats started before then are saved under the previous day. The default for this could be midnight, so no change would occur unless the user wished.
I'm requesting this because I tend to consider a "day" all the time before I go to sleep at night. This creates more consistency since all my chats between two sleeping sessions are kept together. I would love for Adium to have this ability. Thanks!

Re: Ability to bump post-midnight chats to the previous day?
Posted: Fri Jan 12, 2007 1:29 am
by djmori
CaptainValor wrote:I don't know if Adium has this feature currently, but is there a way to set the logging so that if one starts a chat say at 10 PM on a Friday, and the chat runs past midnight into Saturday, the chat is still saved under Friday? Ideally, one could to set a "cutoff" time (say, 4 AM) after which the chat is saved on that same day, but chats started before then are saved under the previous day. The default for this could be midnight, so no change would occur unless the user wished.
I'm requesting this because I tend to consider a "day" all the time before I go to sleep at night. This creates more consistency since all my chats between two sleeping sessions are kept together. I would love for Adium to have this ability. Thanks!

are you using 1.0Beta or 0.89.1???
In the beta, Every conversation is stored under one single log with the start time, no matter if you talk the hole night trough (no other log is created at 12AM).
Posted: Fri Jan 12, 2007 4:15 am
by CaptainValor
Yes, but in the special case where a new conversation starts after 12 AM, I'd like for it to still be listed under the previous day.
I'm using the latest Beta build.
Posted: Fri Jan 12, 2007 5:22 am
by LuxuryChair
I see, something like a dropdown in the advanced preferences under logging that says:
"New day starts at:" {midnight, 3AM, 6AM, 8AM}?
Posted: Fri Jan 12, 2007 8:55 pm
by CaptainValor
Yes! Exactly.

Posted: Fri Jan 12, 2007 9:24 pm
by Catfish_Man
I would not burn preferences space on something like this, but one sneaky cool thing that might be possible would be to read iCal's preference for this. I'd argue that if your day in one app starts at 4, it probably does in others. Thoughts?
Posted: Fri Jan 12, 2007 10:13 pm
by bgannin
Catfish_Man wrote:I would not burn preferences space on something like this, but one sneaky cool thing that might be possible would be to read iCal's preference for this. I'd argue that if your day in one app starts at 4, it probably does in others. Thoughts?
I agree, but devil's advocate leads me to 2 challenges:
- folks who use another app exclusively [like Entourage]
- folks who never use/configure iCal (can also be a part of the former as well)
Posted: Fri Jan 12, 2007 10:22 pm
by LuxuryChair
bgannin wrote:I agree, but devil's advocate leads me to 2 challenges:
- folks who use another app exclusively [like Entourage]
- folks who never use/configure iCal (can also be a part of the former as well)
I'm not remembering what it is but I remember even some Apple apps working in a way similar to this. I think setting your default mail program in safari?
In any case, I think that the people who fall into those categories will either not care about the time cut off or come here (or the online help) to ask the question of how. The vast majority of people use it on midnight, I would think. I've seen few requests for it, at least. (heh, though I would probably change the setting on mine if I knew it was possible, so maybe better communication to the user that such a change is possible would be nice - but how?)
Posted: Fri Jan 12, 2007 10:22 pm
by evands
That would mirror how we determine the first day of the week...
Code: Select all
- (int)daysSinceStartOfWeekGivenToday:(NSCalendarDate *)today
{
int todayDayOfWeek = [today dayOfWeek];
//Try to look at the iCal preferences if possible
if (!iCalFirstDayOfWeekDetermined) {
CFPropertyListRef iCalFirstDayOfWeek = CFPreferencesCopyAppValue(CFSTR("first day of week"),CFSTR("com.apple.iCal"));
if (iCalFirstDayOfWeek) {
//This should return a CFNumberRef... we're using another app's prefs, so make sure.
if (CFGetTypeID(iCalFirstDayOfWeek) == CFNumberGetTypeID()) {
firstDayOfWeek = [(NSNumber *)iCalFirstDayOfWeek intValue];
}
CFRelease(iCalFirstDayOfWeek);
}
//Don't check again
iCalFirstDayOfWeekDetermined = YES;
}
return ((todayDayOfWeek >= firstDayOfWeek) ? (todayDayOfWeek - firstDayOfWeek) : ((todayDayOfWeek + 7) - firstDayOfWeek));
}
Posted: Sun Jan 14, 2007 9:42 pm
by CaptainValor
Well, I understand very few people would use this feature. But apparently it wouldn't be terribly hard to implement code-wise, and it would certainly make the few of us who would use it very pleased.
