close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 20 years ago

Closed 20 years ago

Last modified 18 years ago

#267 closed defect (fixed)

FormatDate()

Reported by: Javier Gallardo Owned by: danirus
Priority: normal Milestone:
Component: Text Version: head
Severity: critical Keywords:
Cc:

Description

The mask "%c%Y/%m/%d%u %h:%i:%s" does not work correctly.

Before:
Text t = FormatDate(y2000, "%c%Y/%m/%d%u %h:%i:%s");

--> t = "2000/01/01";

Now:
Text t = FormatDate(y2000, "%c%Y/%m/%d%u %h:%i:%s");

--> t = "2000/01/01 00:00:00.00";

The part '%u' means 'uncompleted', then if '%h:%i:%s' = '00:00:00.00' it does not
have to show nothing.

Change History (2)

comment:1 Changed 20 years ago by danirus

Resolution: fixed
Status: newclosed

This bug is fully related with bug 259.
When I worked in this last one, two weeks ago, I was waiting for somebody who
could tell me something about the new behavior. Now I have your impressions.

It just has been resolved, and a new Date to Text conversion routine has been
commited.

comment:2 Changed 18 years ago by Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000267
Note: See TracTickets for help on using tickets.