2015-07-09, 12:45
Picking up your post on github:
For any-time timers, start and end time are initially set to <date now><time now>, not <1/1/1970><time now> which you should see the moment you disable "Any time". Start day and end day fields should show the date from the moment you opened the settings dialog (yes, might be not "today" if you managed to have the dialog open across day boundary) and start time and end time should show the time at the moment you opened the timer settings dialog.
Cannot see how this warning could be triggered in the scenario you described, with the only exception that you managed to cross day boundary and start/end day actually pointing to "yesterday" when closing the dialog, because you only adjusted the time, not the dates. Sounds wild, but could this have happened? Asking beeing a night owl myself...
Could you please tell me what the functional misbehavior is you're experiencing from the warning above? ... and step-by-step instructions how to reproduce it, please.
Forcing firstday to something at least "now" seems to be pointless. Will remove this. Thx for reporting.
Quote:If you edit an 'Anytime' timer (startTime=endTime=0) to convert it to a specific time timer (e.g. 22:00 - 23:00), CGUIDialogPVRTimerSettings::Save() runs the following code snippet, which mangles things, setting startTime=endTime=now(). I guess this is because start time was initially set as 1/1/1970 22:00:
if (m_startLocalTime < now)
m_startLocalTime = now;
if (m_endLocalTime < m_startLocalTime)
{
CLog::Log(LOGWARNING, "CGUIDialogPVRTimerSettings::Save - end time is before start time! Setting to start time.");
m_endLocalTime = m_startLocalTime;
}
For any-time timers, start and end time are initially set to <date now><time now>, not <1/1/1970><time now> which you should see the moment you disable "Any time". Start day and end day fields should show the date from the moment you opened the settings dialog (yes, might be not "today" if you managed to have the dialog open across day boundary) and start time and end time should show the time at the moment you opened the timer settings dialog.
Cannot see how this warning could be triggered in the scenario you described, with the only exception that you managed to cross day boundary and start/end day actually pointing to "yesterday" when closing the dialog, because you only adjusted the time, not the dates. Sounds wild, but could this have happened? Asking beeing a night owl myself...
Could you please tell me what the functional misbehavior is you're experiencing from the warning above? ... and step-by-step instructions how to reproduce it, please.
Quote:A similar effect afflicts 'm_firstDayLocalTime' a couple of lines below, which will set all 'first days' in the past to 'now' on timer edit (not good for 'Weekly' rules where 1st day sets the day of the week...).
Forcing firstday to something at least "now" seems to be pointless. Will remove this. Thx for reporting.