Modify

Opened 10 years ago

Last modified 10 years ago

#11758 new enhancement

[patch] Encode time with real hour format

Reported by: Stephan Geulette Owned by: Russ Tyndall
Priority: normal Component: TimingAndEstimationPlugin
Severity: normal Keywords: patch
Cc: Trac Release: 1.0

Description

Hi,

to avoid brain headache, I have added in my local branch the possibility to encode hour in hour format and not as decimal. By example 1h30, 2h or h45

The encoding as float always works too.

I use currently the "http://trac-hacks.org/svn/timingandestimationplugin/branches/trac0.12-Permissions" branch.

I attach my diff file.

I modified ticket.js to always display hour with same format (0h05, in place of 5m).

Attachments (2)

hour_format.diff (2.8 KB) - added by Stephan Geulette 10 years ago.
diff file containing hour encoding format
dec_to_hour.sql (547 bytes) - added by Stephan Geulette 10 years ago.
decimal to hour function, usefull in reports

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by Stephan Geulette

Attachment: hour_format.diff added

diff file containing hour encoding format

Changed 10 years ago by Stephan Geulette

Attachment: dec_to_hour.sql added

decimal to hour function, usefull in reports

comment:1 Changed 10 years ago by Stephan Geulette

I have attached too a pgsql function, converting float to hour, that can be used in sql reports

comment:2 Changed 10 years ago by Russ Tyndall

Keywords: patch added
Summary: Encode time with real hour format[patch] Encode time with real hour format

I appreciate your work on the community's behalf and am glad you found the plugin useful enough to extend.

Next time I work on this plugin I will attempt to integrate your changes.

I will leave this up and open in case anyone wishes to use this in the mean time.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Russ Tyndall.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.