Bug 82198 - JJ: all date variables should allow to specify the date format
Summary: JJ: all date variables should allow to specify the date format
Status: RESOLVED FIXED
Alias: None
Product: koffice
Classification: Applications
Component: general (show other bugs)
Version: 1.3.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KOffice Bug Wranglers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-25 20:10 UTC by Ferdinand Gassauer
Modified: 2004-07-23 13:24 UTC (History)
0 users

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 Ferdinand Gassauer 2004-05-25 20:10:21 UTC
Version:           1.3.1 (using KDE 3.2.2, SuSE)
Compiler:          gcc version 3.3.3 (SuSE Linux)
OS:                Linux (i686) release 2.6.4-54.5-smp

currenlty only the first 2 variables (fixed and variable date) allow to choose the date format

IMHO this feature should be available for all date variables (last  modified, printed etc)

cu ferdinand
Comment 1 Nicolas Goutte 2004-05-26 11:22:21 UTC
- Making this to a bug. (The way how it is currently implemented is buggy.)
- Moving to KOffice/General, as the code is in the KOffice libraries.
- Making it to a "junior job".

Have a nice day!
Comment 2 David Faure 2004-07-23 13:24:19 UTC
----------  Forwarded Message  ----------

Subject: KOFFICE_1_3_BRANCH: koffice/lib
Date: Friday 23 July 2004 13:20
From: David Faure <faure@kde.org>
To: kde-cvs@kde.org
Cc: p.stirnweiss_koffice@bluewin.ch

CVS commit by faure: 

Fix for #82198 (date format for some date variables)
Patch by p.stirnweiss_koffice@bluewin.ch - thanks!
CCMAIL: p.stirnweiss_koffice@bluewin.ch


  M +1 -1      CHANGES   1.17.2.33
  M +1 -1      kotext/kovariable.cc   1.135.2.2


--- koffice/lib/CHANGES  #1.17.2.32:1.17.2.33
@@ -8,5 +8,5 @@
 
 KoText:
--
+- Fixed date format not available for some date variables (#82198)
 
 Changes between KOffice-1.3.1 and KOffice-1.3.2

--- koffice/lib/kotext/kovariable.cc  #1.135.2.1:1.135.2.2
@@ -746,5 +746,5 @@ KoVariable * KoVariableCollection::creat
         case VT_DATE_VAR_KWORD10:  // compatibility with kword 1.0
         {
-            if ( _forceDefaultFormat || subtype == KoDateVariable::VST_DATE_LAST_PRINTING || subtype ==KoDateVariable::VST_DATE_CREATE_FILE || subtype ==KoDateVariable::VST_DATE_MODIFY_FILE)
+            if ( _forceDefaultFormat )
                 varFormat = coll->format( KoDateVariable::defaultFormat() );
             else




-------------------------------------------------------