Skip to content

Commit

Permalink
Merge pull request #3092 from drshawnkwang/drupal_fix_views-UTC-tz
Browse files Browse the repository at this point in the history
Drupal: Changed how the host_and_work_stats times are displayed.
  • Loading branch information
tristanolive authored Apr 10, 2019
2 parents 0af4d7c + e8715ce commit 837722c
Showing 1 changed file with 224 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -10852,8 +11030,10 @@ else {
'text' => '',
'make_link' => 0,
'path' => '',
'absolute' => 0,
'link_class' => '',
'alt' => '',
'rel' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
Expand All @@ -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(
Expand Down

0 comments on commit 837722c

Please sign in to comment.