Loading

[2.1.1] Time Tracker default start time

General Discussion around Collabtive

[2.1.1] Time Tracker default start time

Postby Cranial » 11.02.2016, 05:13

Hi, for the life of me I cannot figure out how to change the default start time when adding items into time tracker.

It currently defaults to 0800hrs, want to change it to 0700.

Shaun.
Cranial
 
Posts: 10
Joined: 04.12.2015, 00:05

Re: [2.1.1] Time Tracker default start time

Postby Philipp » 16.02.2016, 09:37

To do this - open the file /templates/standard/addtimetracker.tpl and find line 30.
Change it from
Code: Select all
<input type="text" class="text" style="width:80px;margin:0 6px 0 0;" id="started" name="started" onkeyup=" populateHours();" required="1" regexp="^([01]?\d|2[0123]):[012345]\d$" realname="{#started#} ({#timeformat#}: hh:mm)" value="08:00" />


to

Code: Select all
              <input type="text" class="text" style="width:80px;margin:0 6px 0 0;" id="started" name="started" onkeyup=" populateHours();" required="1" regexp="^([01]?\d|2[0123]):[012345]\d$" realname="{#started#} ({#timeformat#}: hh:mm)" value="17:00" />


In the same way you can change the default for the endtime, in line 34.
User avatar
Philipp
Site Admin
 
Posts: 1118
Joined: 14.12.2007, 03:06
Location: Saarbrücken, germany

Re: [2.1.1] Time Tracker default start time

Postby Cranial » 16.02.2016, 13:32

Perfect, thank you !
Cranial
 
Posts: 10
Joined: 04.12.2015, 00:05


Return to General

Who is online

Users browsing this forum: No registered users

cron