Bug 368478 - Date in edit not respect settings
Summary: Date in edit not respect settings
Status: RESOLVED INTENTIONAL
Alias: None
Product: skrooge
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Stephane MANKOWSKI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-09 04:32 UTC by vicnet
Modified: 2016-09-11 19:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vicnet 2016-09-09 04:32:43 UTC
In settings, Date representation is set to 'Fantasy Short Date'.
This setting is not use in edit view fr date widget.
It is used in list views and split view.

Reproducible: Always

Steps to Reproduce:
1. Set date settings to fantasy short
2. Select a recent operation
3. Display the edit view

Actual Results:  
Date is like 03/09/2016 in date widget from edit view, but displayed as 'Today' in other views.

Expected Results:  
Should be displayed as 'Today' also.

Until real edition (like in split view) where date must be in digit only.

Not sure it is a bug, just a thing with a small difference
Comment 1 Stephane MANKOWSKI 2016-09-10 20:47:01 UTC
Hi Vicnet,

Here is some information to have your point of view:
1- In the operation view:
    a) The VIEW of the date is using the setting.
    b) There is not EDITION.
2- In the split view:
    a) The VIEW of the date is using the setting.
    b) In EDITION mode, the date widget is displayed and the date format is DD/MM//YYYY. This is mandatory to be able to parse the date.
3- In the edition zone of the operation page (and all other page having date widget.
   a) There is no VIEW mode.
   b) The date widget is ready for the EDITION. So, the date format is DD/MM//YYYY. This is mandatory to be able to parse the date.

We could imagine that the date widget:
   a) Displays the date in setting format when it has NOT the focus (this is the VIEW mode)
   b) Displays the date in DD/MM/YYYY format when it has the focus (this is the EDITION mode)

But, this new behaviour could generate some troubles:
   1- The size of the widget will change because "Samedi, 10 Septembre 2016" is longer than "10/09/2016".
   2- This change will be done only in Skrooge. This won't be the same in all other applications manipulating dates.
   3- This is an important modification on a key component, so this is risky.

What is you point of view? Do you think that my proposal should be done?
Personally, I am not 100% convinced.
Comment 2 vicnet 2016-09-11 17:59:10 UTC
I agree and I understand the functionality.
As I say, I was not sure it is a bug !
At first impression, I don't see the difference between edit tab (that is in edition mode) and sub-operations that is in view mode and change to edition mode when clicking on date widget...

It is not a real pb, just strange in first impression.
So don't change it.