Project:Views Date Range Filter
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Time crawls wrong

Time crawls Range: 2007-11-07 TO
2007-11-07 [Look (1)]

but only crawls 11/07/2007-09:47 [Look (2)]

Correct should be 11/07/2007-09:47 and
11/07/2007-01:23 [Look (4)]

my Default time zone is +0800 [Taiwan]

Bug may be here.

Thank you very much.

AttachmentSize
error.jpg205.6 KB

Comments

#1

I know that you say you have the 5.x-1.x-dev version. I actually fixed some problems related to off-by-one-day in the datestamp cck types recently. Please make sure that you have the latest version (1.5.2.29). Please see if the problem is related to the date or datestamp cck type.

#2

sorry.
I don't know what you mean. => latest version (1.5.2.29)
CCK module or
date module or other
sorry.
Thank you very much.

#3

Look at daterange.module, at the top there should be a line that says something like:

// $Id: daterange.module,v 1.5.2.29 2007/10/27 12:10:54 douggreen Exp $

#4

YES!

daterange 5.x-1.x-dev 2007-Oct-28 10.54 KB
// $Id: daterange.module,v 1.5.2.29 2007/10/27 12:10:54 douggreen Exp $

date 5.x-1.x-dev 2007-Oct-27 75.75 KB
// $Id: date.module,v 1.32.2.51 2007/10/25 17:11:13 karens Exp $

cck 5.x-1.6-1 2007-Aug-16 97.82 KB
// $Id: content.module,v 1.90.2.44 2007/08/15 18:00:28 yched Exp $

but still have this bug.
Thank you very much.

#5

What's the answer to my other question above? Is your CCK date field a CCK "date" field or a CCK "datestamp" field?

Please export the field and paste it here inside of HTML <code>...</code> tags. You can export your CCK content types and fields from admin/content/types/export.

#6

#7

sory,My English was not very well.

is "Node: Created Time".

not CCK "date" field or a CCK "datestamp" field

this is my CCK content types and fields export
thank you very much.

$content[type]  = array (
  'name' => '圖書調借申請表',
  'type' => 'borrow_local_form',
  'description' => '建立 圖書調借申請表 專用',
  'title_label' => '標題',
  'body_label' => '',
  'min_word_count' => '0',
  'help' => '<table border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#f4cd8a" id="table1">
                <tbody>
                    <tr>
                        <td bgcolor="#fff5a8" colspan="2">
                        <div align="left">注意事項</div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        <div align="left">1. 作業時間:</div>
                      </td>
                        <td>
                        <div align="left">2個工作天〈<font color="#da518f">例假日除外</font>〉</div>
                      </td>
                    </tr>
                    <tr>
                        <td>
                        <div align="left">2. 禁止申請:</div>
                      </td>
                        <td>
                        <div align="left">調借<font color="#da518f">三次</font>未領取者,<font color="#da518f">三個月</font>內不得再提出申請。</div>
                      </td>
                    </tr>
                    <tr>
                        <td>
                        <div align="left">3. 通知方式:</div>
                      </td>
                        <td>
                        <div align="left">
                          <p>a. 由系統自動寄發,如要修改您的 E-mail 請到 <A href="http://140.127.53.11/patroninfo*cht" target="_blank">借閱紀錄</A> 修改您的個人資料。<br>
                          b. <a href="/lib/borrow_local_form">上網查詢書籍處理狀況</a>。</p>
                          </div>
                      </td>
                    </tr>
                </tbody>
            </table>',
  'node_options' =>
  array (
    'status' => true,
    'promote' => false,
    'sticky' => false,
    'revision' => false,
  ),
  'comment' => '2',
  'upload' => '0',
  'authorship_real_name' => 'profile_name',
  'authorship' => '0',
  'comment_upload' => '1',
  'event_nodeapi' => 'never',
  'forward_display' => 1,
  'jrating_nodeapi' => '0',
  'old_type' => 'borrow_local_form',
  'orig_type' => '',
  'module' => 'node',
  'custom' => '1',
  'modified' => '1',
  'locked' => '0',
  'ant' => '1',
  'ant_pattern' => '#[nid]_[author-name]_[field__69-raw]',
  'ant_php' => 0,
);
$content[groups]  = array (
  0 =>
  array (
    'label' => '圖書調借申請表',
    'settings' =>
    array (
      'form' =>
      array (
        'style' => 'fieldset',
        'description' => '',
      ),
      'display' =>
      array (
        'description' => '',
        'teaser' => 'fieldset',
        'full' => 'fieldset',
        'label' => 'above',
      ),
    ),
    'weight' => '0',
    'group_name' => 'group_',
  ),
  1 =>
  array (
    'label' => '回覆紀錄',
    'settings' =>
    array (
      'form' =>
      array (
        'style' => 'fieldset',
        'description' => '',
      ),
      'display' =>
      array (
        'description' => '',
        'teaser' => 'fieldset',
        'full' => 'fieldset',
        'label' => 'above',
      ),
    ),
    'weight' => '1',
    'group_name' => 'group__0',
  ),
);
$content[fields]  = array (
  0 =>
  array (
    'widget_type' => 'text',
    'label' => '書名',
    'weight' => '-10',
    'rows' => '1',
    'description' => '',
    'default_value_widget' =>
    array (
      'field__69' =>
      array (
        0 =>
        array (
          'value' => '',
        ),
      ),
    ),
    'default_value_php' => '',
    'group' => 'group_',
    'required' => '1',
    'multiple' => '0',
    'text_processing' => '0',
    'max_length' => '',
    'allowed_values' => '',
    'allowed_values_php' => '',
    'field_name' => 'field__69',
    'field_type' => 'text',
    'module' => 'text',
    'default_value' =>
    array (
      0 =>
      array (
        'value' => '',
      ),
    ),
  ),
  1 =>
  array (
    'widget_type' => 'options_select',
    'label' => '處理情況',
    'weight' => '-10',
    'description' => '',
    'default_value_widget' =>
    array (
      'field__74' =>
      array (
        'key' => '',
      ),
    ),
    'default_value_php' => '',
    'group' => 'group__0',
    'required' => '0',
    'multiple' => '0',
    'text_processing' => '0',
    'max_length' => '',
    'allowed_values' => '已讀取
書籍運送中
已可領取
該書已借出
已被線上預約
暫找不著,需追蹤
逾期未領,取消申請
已領件',
    'allowed_values_php' => '',
    'field_name' => 'field__74',
    'field_type' => 'text',
    'module' => 'text, optionwidgets',
  ),
  2 =>
  array (
    'widget_type' => 'text',
    'label' => '備註',
    'weight' => '-9',
    'rows' => '4',
    'description' => '',
    'default_value_widget' =>
    array (
      'field__75' =>
      array (
        0 =>
        array (
          'value' => '',
        ),
      ),
    ),
    'field__75' =>
    array (
      0 =>
      array (
        'format' => '3',
      ),
    ),
    'default_value_php' => '',
    'group' => 'group__0',
    'required' => '0',
    'multiple' => '0',
    'text_processing' => '1',
    'max_length' => '',
    'allowed_values' => '',
    'allowed_values_php' => '',
    'field_name' => 'field__75',
    'field_type' => 'text',
    'module' => 'text',
  ),
  3 =>
  array (
    'widget_type' => 'text',
    'label' => '條碼號',
    'weight' => '-9',
    'rows' => '1',
    'description' => '',
    'default_value_widget' =>
    array (
      'field__70' =>
      array (
        0 =>
        array (
          'value' => '',
        ),
      ),
    ),
    'default_value_php' => '',
    'group' => 'group_',
    'required' => '1',
    'multiple' => '0',
    'text_processing' => '0',
    'max_length' => '',
    'allowed_values' => '',
    'allowed_values_php' => '',
    'field_name' => 'field__70',
    'field_type' => 'text',
    'module' => 'text',
  ),
  4 =>
  array (
    'widget_type' => 'text',
    'label' => '索書號',
    'weight' => '-8',
    'rows' => '1',
    'description' => '',
    'default_value_widget' =>
    array (
      'field__71' =>
      array (
        0 =>
        array (
          'value' => '',
        ),
      ),
    ),
    'default_value_php' => '',
    'group' => 'group_',
    'required' => '1',
    'multiple' => '0',
    'text_processing' => '0',
    'max_length' => '',
    'allowed_values' => '',
    'allowed_values_php' => '',
    'field_name' => 'field__71',
    'field_type' => 'text',
    'module' => 'text',
  ),
  5 =>
  array (
    'widget_type' => 'options_select',
    'label' => '外借光碟',
    'weight' => '-7',
    'description' => '',
    'default_value_widget' =>
    array (
      'field__72' =>
      array (
        'key' => '',
      ),
    ),
    'default_value_php' => '',
    'group' => 'group_',
    'required' => '1',
    'multiple' => '0',
    'text_processing' => '0',
    'max_length' => '',
    'allowed_values' => '否
是',
    'allowed_values_php' => '',
    'field_name' => 'field__72',
    'field_type' => 'text',
    'module' => 'text, optionwidgets',
  ),
  6 =>
  array (
    'widget_type' => 'options_select',
    'label' => '調借方式',
    'weight' => '-6',
    'description' => '*調借<span style="background-color: #CCCCFF">燕巢</span>:取書地點為<span style="background-color: #FFCCFF">和平</span><br>
*調借<span style="background-color: #FFCCFF">和平</span>:取書地點為<span style="background-color: #CCCCFF">燕巢</span>',
    'default_value_widget' =>
    array (
      'field__73' =>
      array (
        'key' => '',
      ),
    ),
    'default_value_php' => '',
    'group' => 'group_',
    'required' => '1',
    'multiple' => '0',
    'text_processing' => '0',
    'max_length' => '',
    'allowed_values' => '調借燕巢
調借和平',
    'allowed_values_php' => '',
    'field_name' => 'field__73',
    'field_type' => 'text',
    'module' => 'text, optionwidgets',
  ),
);

#8

Ok, I now understand that you are reporting a timezone bug in the daterange module when you just use the "Node: Created Time" filter, so it's unrelated to CCK your fields. I'll have a closer look at this.

#9

Yes,thank you very much.

nobody click here