Date resets to 01/01/1900 while adding a new transaction

Bug #1763952 reported by Anuj Ladia
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
HomeBank
Fix Released
Low
Maxime DOYEN

Bug Description

I am using HomeBank version 5.1.8.

OS - Ubuntu 16.04

While adding a new transaction, the date entry is always set to 01/01/1900. Initially, it shows the current date but, after selecting a date or moving to another entry, it again resets to the date mentioned (1900).

Adding the current date or allowing the date menu showing the current date, would be helpful in date selection.

Revision history for this message
Anuj Ladia (aladia) wrote :
Revision history for this message
Maxime DOYEN (mdoyen) wrote :

I don't reproduce this.
questions:
- have you checked keep the last date into the prefs ?
- what is your date display into the prefs ?
- what is your language (what 'locale' output on bash) ?

Changed in homebank:
status: New → Incomplete
Revision history for this message
Anuj Ladia (aladia) wrote :

Answers to your questions:

Q. have you checked keep the last date into the prefs ?

A. Yes

Q. What is your date display into the prefs ?

A. Saturday 14 April 2018
   Format : %x

Q. What is your language (what 'locale' output on bash) ?

A. Output:

LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_IN.UTF-8
LC_TIME=en_IN.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_IN.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_IN.UTF-8
LC_NAME=en_IN.UTF-8
LC_ADDRESS=en_IN.UTF-8
LC_TELEPHONE=en_IN.UTF-8
LC_MEASUREMENT=en_IN.UTF-8
LC_IDENTIFICATION=en_IN.UTF-8
LC_ALL=

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

very strange.
what is your GTK+ version ?
are you able to change (and keep the date) is you enter it manually (without the calendar popup) or using the arrow key combination ?
(see http://homebank.free.fr/help/use-tipsandtricks.html#datewidget)

Revision history for this message
Anuj Ladia (aladia) wrote :

GTK+ version: 3.18.9

Yes, I can keep the date while adding manually.

The problem is also present when I try to edit a transaction. Only when I use "Add & keep" option, the pop-up calendar does not reset.

However, the arrow key combination from the link you provided also resets the date.

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

your first capture shows 1900, not 1990
1/1/1900 is the minimum bound for date

still don't reproduce this on ubuntu 18.04
anyone else has this problem ?

summary: - Date resets to 01/01/1990 while adding a new transaction
+ Date resets to 01/01/1900 while adding a new transaction
Revision history for this message
Maxime DOYEN (mdoyen) wrote :

is it fomr the main window or from the account window

Revision history for this message
Arun M (codito) wrote :

I see the same issue on Arch Linux. My locale is same as the OP. The issue comes from Main Window and Account Window.

1. Main Window -> Transactions -> Add
2. In the popup dialog, today's date is selected
3. Press tab to move to another field
4. Date changes to 1/1/1900

Is there any other information I can provide for diagnosis?

no longer affects: homebank (Arch Linux)
Revision history for this message
Arun M (codito) wrote :

This issue seems to occur on 5.1.7 release too. 5.1.6 works as expected.

On 5.1.6, I notice the date to be shown completely in text box:

"Saturday 28 April 2018"

On 5.1.7+, a substring is shown:

"Saturday 28 Apr"

Is it possible that this string is incorrectly parsed to an invalid date in following code?

https://bazaar.launchpad.net/~mdoyen/homebank/5.2.x/view/head:/src/gtk-dateentry.c#L96

Anuj Ladia (aladia)
description: updated
Maxime DOYEN (mdoyen)
Changed in homebank:
status: Incomplete → New
Revision history for this message
Maxime DOYEN (mdoyen) wrote :

I don't reproduce, even with the same locale
BUT the string is definitely truncated, this is due to a widget change from 5.1.6 to 5.1.7 and >

Changed in homebank:
assignee: nobody → Maxime DOYEN (mdoyen)
importance: Undecided → Low
milestone: none → 5.2
status: New → Confirmed
Maxime DOYEN (mdoyen)
Changed in homebank:
status: Confirmed → Fix Committed
Maxime DOYEN (mdoyen)
Changed in homebank:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.