Opened 11 years ago
Last modified 11 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)
Change History (4)
Changed 11 years ago by
Attachment: | hour_format.diff added |
---|
Changed 11 years ago by
Attachment: | dec_to_hour.sql added |
---|
decimal to hour function, usefull in reports
comment:1 Changed 11 years ago by
I have attached too a pgsql function, converting float to hour, that can be used in sql reports
comment:2 Changed 11 years ago by
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.
diff file containing hour encoding format