mirror of https://github.com/BOINC/boinc.git
Drupal: Changed how the host_and_work_stats times are displayed.
Host create time is now displayed with proper time zone. Workunit create time is now displayed with proper time zone. Task (result) create, sent, recevied, and report deadline times are now displayed with proper time zone. https://dev.gridrepublic.org/browse/DBOINCP-498
This commit is contained in:
parent
4c6eb6c0f8
commit
e8715ce2a6
|
@ -2000,12 +2000,47 @@ function work_and_host_stats_views_default_views() {
|
|||
'hide_alter_empty' => 1,
|
||||
'date_format' => 'custom',
|
||||
'custom_date_format' => 'j M Y G:i:s T',
|
||||
'exclude' => 0,
|
||||
'exclude' => 1,
|
||||
'id' => 'create_time',
|
||||
'table' => 'host',
|
||||
'field' => 'create_time',
|
||||
'relationship' => 'none',
|
||||
),
|
||||
'phpcode_6' => array(
|
||||
'label' => 'Created',
|
||||
'alter' => array(
|
||||
'alter_text' => 0,
|
||||
'text' => '',
|
||||
'make_link' => 0,
|
||||
'path' => '',
|
||||
'absolute' => 0,
|
||||
'link_class' => '',
|
||||
'alt' => '',
|
||||
'rel' => '',
|
||||
'prefix' => '',
|
||||
'suffix' => '',
|
||||
'target' => '',
|
||||
'help' => '',
|
||||
'trim' => 0,
|
||||
'max_length' => '',
|
||||
'word_boundary' => 1,
|
||||
'ellipsis' => 1,
|
||||
'html' => 0,
|
||||
'strip_tags' => 0,
|
||||
),
|
||||
'empty' => '',
|
||||
'hide_empty' => 0,
|
||||
'empty_zero' => 0,
|
||||
'hide_alter_empty' => 1,
|
||||
'value' => '<?php
|
||||
echo date(\'j M Y G:i:s T\', $data->host_create_time);
|
||||
?>',
|
||||
'exclude' => 0,
|
||||
'id' => 'phpcode_6',
|
||||
'table' => 'customfield',
|
||||
'field' => 'phpcode',
|
||||
'relationship' => 'none',
|
||||
),
|
||||
'total_credit' => array(
|
||||
'label' => 'Total credit',
|
||||
'alter' => array(
|
||||
|
@ -5640,7 +5675,7 @@ Cross-project stats:
|
|||
$handler->override_option('path', 'account/%/computers/active');
|
||||
$handler->override_option('menu', array(
|
||||
'type' => 'default tab',
|
||||
'title' => bts('Active in past 30 days', array(), NULL, 'boinc:account-host-list'),
|
||||
'title' => 'Active in past 30 days',
|
||||
'description' => 'Show only computers that have been active in the past month',
|
||||
'weight' => '0',
|
||||
'name' => 'navigation',
|
||||
|
@ -5656,7 +5691,7 @@ Cross-project stats:
|
|||
$handler->override_option('path', 'account/%/computers/all');
|
||||
$handler->override_option('menu', array(
|
||||
'type' => 'tab',
|
||||
'title' => bts('All computers', array(), NULL, 'boinc:account-host-list'),
|
||||
'title' => 'All computers',
|
||||
'description' => 'Show all computers associated with the account',
|
||||
'weight' => '1',
|
||||
'name' => 'navigation',
|
||||
|
@ -8933,7 +8968,7 @@ else {
|
|||
'hide_alter_empty' => 1,
|
||||
'date_format' => 'custom',
|
||||
'custom_date_format' => 'j M Y G:i:s T',
|
||||
'exclude' => 0,
|
||||
'exclude' => 1,
|
||||
'id' => 'create_time',
|
||||
'table' => 'result',
|
||||
'field' => 'create_time',
|
||||
|
@ -8967,7 +9002,7 @@ else {
|
|||
'hide_alter_empty' => 1,
|
||||
'date_format' => 'custom',
|
||||
'custom_date_format' => 'j M Y G:i:s T',
|
||||
'exclude' => 0,
|
||||
'exclude' => 1,
|
||||
'id' => 'sent_time',
|
||||
'table' => 'result',
|
||||
'field' => 'sent_time',
|
||||
|
@ -9001,7 +9036,7 @@ else {
|
|||
'hide_alter_empty' => 1,
|
||||
'date_format' => 'custom',
|
||||
'custom_date_format' => 'j M Y G:i:s T',
|
||||
'exclude' => 0,
|
||||
'exclude' => 1,
|
||||
'id' => 'report_deadline',
|
||||
'table' => 'result',
|
||||
'field' => 'report_deadline',
|
||||
|
@ -9035,12 +9070,155 @@ else {
|
|||
'hide_alter_empty' => 1,
|
||||
'date_format' => 'custom',
|
||||
'custom_date_format' => 'j M Y G:i:s T',
|
||||
'exclude' => 0,
|
||||
'exclude' => 1,
|
||||
'id' => 'received_time',
|
||||
'table' => 'result',
|
||||
'field' => 'received_time',
|
||||
'relationship' => 'none',
|
||||
),
|
||||
'phpcode' => array(
|
||||
'label' => 'Created',
|
||||
'alter' => array(
|
||||
'alter_text' => 0,
|
||||
'text' => '',
|
||||
'make_link' => 0,
|
||||
'path' => '',
|
||||
'absolute' => 0,
|
||||
'link_class' => '',
|
||||
'alt' => '',
|
||||
'rel' => '',
|
||||
'prefix' => '',
|
||||
'suffix' => '',
|
||||
'target' => '',
|
||||
'help' => '',
|
||||
'trim' => 0,
|
||||
'max_length' => '',
|
||||
'word_boundary' => 1,
|
||||
'ellipsis' => 1,
|
||||
'html' => 0,
|
||||
'strip_tags' => 0,
|
||||
),
|
||||
'empty' => '',
|
||||
'hide_empty' => 0,
|
||||
'empty_zero' => 0,
|
||||
'hide_alter_empty' => 1,
|
||||
'value' => '<?php
|
||||
echo date(\'j M Y G:i:s T\', $data->result_create_time);
|
||||
?>',
|
||||
'exclude' => 0,
|
||||
'id' => 'phpcode',
|
||||
'table' => 'customfield',
|
||||
'field' => 'phpcode',
|
||||
'relationship' => 'none',
|
||||
),
|
||||
'phpcode_1' => array(
|
||||
'label' => 'Sent',
|
||||
'alter' => array(
|
||||
'alter_text' => 0,
|
||||
'text' => '',
|
||||
'make_link' => 0,
|
||||
'path' => '',
|
||||
'absolute' => 0,
|
||||
'link_class' => '',
|
||||
'alt' => '',
|
||||
'rel' => '',
|
||||
'prefix' => '',
|
||||
'suffix' => '',
|
||||
'target' => '',
|
||||
'help' => '',
|
||||
'trim' => 0,
|
||||
'max_length' => '',
|
||||
'word_boundary' => 1,
|
||||
'ellipsis' => 1,
|
||||
'html' => 0,
|
||||
'strip_tags' => 0,
|
||||
),
|
||||
'empty' => '',
|
||||
'hide_empty' => 0,
|
||||
'empty_zero' => 0,
|
||||
'hide_alter_empty' => 1,
|
||||
'value' => '<?php
|
||||
echo date(\'j M Y G:i:s T\', $data->result_sent_time);
|
||||
?>
|
||||
',
|
||||
'exclude' => 0,
|
||||
'id' => 'phpcode_1',
|
||||
'table' => 'customfield',
|
||||
'field' => 'phpcode',
|
||||
'relationship' => 'none',
|
||||
),
|
||||
'phpcode_8' => array(
|
||||
'label' => 'Report deadline',
|
||||
'alter' => array(
|
||||
'alter_text' => 0,
|
||||
'text' => '',
|
||||
'make_link' => 0,
|
||||
'path' => '',
|
||||
'absolute' => 0,
|
||||
'link_class' => '',
|
||||
'alt' => '',
|
||||
'rel' => '',
|
||||
'prefix' => '',
|
||||
'suffix' => '',
|
||||
'target' => '',
|
||||
'help' => '',
|
||||
'trim' => 0,
|
||||
'max_length' => '',
|
||||
'word_boundary' => 1,
|
||||
'ellipsis' => 1,
|
||||
'html' => 0,
|
||||
'strip_tags' => 0,
|
||||
),
|
||||
'empty' => '',
|
||||
'hide_empty' => 0,
|
||||
'empty_zero' => 0,
|
||||
'hide_alter_empty' => 1,
|
||||
'value' => '<?php
|
||||
echo date(\'j M Y G:i:s T\', $data->result_report_deadline);
|
||||
?>
|
||||
',
|
||||
'exclude' => 0,
|
||||
'id' => 'phpcode_8',
|
||||
'table' => 'customfield',
|
||||
'field' => 'phpcode',
|
||||
'relationship' => 'none',
|
||||
),
|
||||
'phpcode_9' => array(
|
||||
'label' => 'Received',
|
||||
'alter' => array(
|
||||
'alter_text' => 0,
|
||||
'text' => '',
|
||||
'make_link' => 0,
|
||||
'path' => '',
|
||||
'absolute' => 0,
|
||||
'link_class' => '',
|
||||
'alt' => '',
|
||||
'rel' => '',
|
||||
'prefix' => '',
|
||||
'suffix' => '',
|
||||
'target' => '',
|
||||
'help' => '',
|
||||
'trim' => 0,
|
||||
'max_length' => '',
|
||||
'word_boundary' => 1,
|
||||
'ellipsis' => 1,
|
||||
'html' => 0,
|
||||
'strip_tags' => 0,
|
||||
),
|
||||
'empty' => '',
|
||||
'hide_empty' => 0,
|
||||
'empty_zero' => 0,
|
||||
'hide_alter_empty' => 1,
|
||||
'value' => '<?php
|
||||
echo date(\'j M Y G:i:s T\', $data->result_received_time);
|
||||
?>
|
||||
',
|
||||
'exclude' => 0,
|
||||
'id' => 'phpcode_9',
|
||||
'table' => 'customfield',
|
||||
'field' => 'phpcode',
|
||||
'relationship' => 'none',
|
||||
),
|
||||
'server_state' => array(
|
||||
'label' => 'Server state',
|
||||
'alter' => array(
|
||||
|
@ -10852,8 +11030,10 @@ else {
|
|||
'text' => '',
|
||||
'make_link' => 0,
|
||||
'path' => '',
|
||||
'absolute' => 0,
|
||||
'link_class' => '',
|
||||
'alt' => '',
|
||||
'rel' => '',
|
||||
'prefix' => '',
|
||||
'suffix' => '',
|
||||
'target' => '',
|
||||
|
@ -10868,14 +11048,50 @@ else {
|
|||
'empty' => '',
|
||||
'hide_empty' => 0,
|
||||
'empty_zero' => 0,
|
||||
'hide_alter_empty' => 1,
|
||||
'date_format' => 'custom',
|
||||
'custom_date_format' => 'j M Y G:i:s T',
|
||||
'exclude' => 0,
|
||||
'exclude' => 1,
|
||||
'id' => 'create_time',
|
||||
'table' => 'workunit',
|
||||
'field' => 'create_time',
|
||||
'relationship' => 'none',
|
||||
),
|
||||
'phpcode_2' => array(
|
||||
'label' => 'Created',
|
||||
'alter' => array(
|
||||
'alter_text' => 0,
|
||||
'text' => '',
|
||||
'make_link' => 0,
|
||||
'path' => '',
|
||||
'absolute' => 0,
|
||||
'link_class' => '',
|
||||
'alt' => '',
|
||||
'rel' => '',
|
||||
'prefix' => '',
|
||||
'suffix' => '',
|
||||
'target' => '',
|
||||
'help' => '',
|
||||
'trim' => 0,
|
||||
'max_length' => '',
|
||||
'word_boundary' => 1,
|
||||
'ellipsis' => 1,
|
||||
'html' => 0,
|
||||
'strip_tags' => 0,
|
||||
),
|
||||
'empty' => '',
|
||||
'hide_empty' => 0,
|
||||
'empty_zero' => 0,
|
||||
'hide_alter_empty' => 1,
|
||||
'value' => '<?php
|
||||
echo date(\'j M Y G:i:s T\', $data->workunit_create_time);
|
||||
?>',
|
||||
'exclude' => 0,
|
||||
'id' => 'phpcode_2',
|
||||
'table' => 'customfield',
|
||||
'field' => 'phpcode',
|
||||
'relationship' => 'none',
|
||||
),
|
||||
'canonical_resultid' => array(
|
||||
'label' => 'Canonical result',
|
||||
'alter' => array(
|
||||
|
|
Loading…
Reference in New Issue