-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/display billable hours #347
base: develop
Are you sure you want to change the base?
Conversation
feature/display billable hours
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be possible to have getTotalTimeByTimeType return a map of timetypes to total minutes, as opposed to formatted hour/minute strings? this would make the maths of adding things up a lot easier in getTotalTimeByBillable, make things a bit more readable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we move all the style="..."
s and the <style>
block into SCSS, for consistency?
$time_totals = $this->getTotalTimeByTimeType($task_id); | ||
$time_totals_in_seconds = []; | ||
foreach ($time_totals as $time_total) { | ||
$time_totals_in_seconds[] = strtotime("1970-01-01 $time_total UTC"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any other way to do this? DateTime perhaps? https://www.php.net/manual/en/class.datetime.php
Checklist
Description
Changelog
refs:
issues:
Other Information
Docs pull request: