PATCH: wxDatePickerCtrl also stores time along with date

Поиск
Список
Период
Сортировка
От Ashesh Vashi
Тема PATCH: wxDatePickerCtrl also stores time along with date
Дата
Msg-id CAG7mmoz9tfrOmWp+2=yzwmKJFaCF7s9O+p45L3CAikTJCD3mnQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: PATCH: wxDatePickerCtrl also stores time along with date  (Dave Page <dpage@pgadmin.org>)
Список pgadmin-hackers
Hi All,

We found an issue related to using wxDatePickerCtrl instead of wxCalendarBox.
Actually - wxDatePickerCtrl does saves the time too, and that's why while using it, it also add up time from the control in update SQL(s).

Because of that, the following scenario happens:
- Create a job 'a'
- Create a schedule 's1' for it.
    Start-time: 28/11/12 15:00:00
    End-time:   28/11/12 15:05:00
- Re-open the properties for the schedule 's1'.
  It will show an update query.
  Even - if you don't change the start/end date-time.

  That's because the calStart (a wxDatePickerCtrl object) has the value with time, and when GetUpdateSql gets called - the result for 'calStart->GetValue() + timStart->GetValue()' would be '29/11/12 06:00:00', which is not equal to the actual value. Hence - generate wrong value.

Please find the patch to resolve the issue.

--

Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA:
Enterprise PostgreSQL Company

 

http://www.linkedin.com/in/asheshvashi

Вложения

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: Fixed documentation warnings
Следующее
От: Dave Page
Дата:
Сообщение: pgAdmin III commit: Date picker controls returns a full timestamp by