English 中文(简体)
Solr - Importdaytime field from theDB -> 2小时
原标题:Solr - Import date time field from DB -> 2 hours difference
  • 时间:2011-06-08 11:10:29
  •  标签:
  • import
  • solr

I m在索尔尔进口一个日间一栏(SQLServer),其数值在停泊点(如在非行),全程和三角洲进口。

我将jvm与正确的时间混在一起(在显示正确时间的记录中)。

我认为,我不得不在数据集中混淆一些内容,但我找不到任何信息。

提前感谢。

最佳回答

You need to convert your date/times into UTC format when you use the data import handler. See this thread on how to do it. AFAIK Solr always expects your dates in UTC format, no matter what the timestamp of the JVM is. Ditto for when you retrieve and display the date (it will be UTC).

问题回答

暂无回答




相关问题
Oracle: how to disable table compression on dmp file import

I have dmp file that was created by EXP utility. The source database has table compression enabled. How can I disable compression while importing dmp file. The destination database does not have ...

import feedparser works via SSH, but fails when in browser

I installed feedparser via SSH, using $ python setup.py install --home=~/httpdocs/python-libraries/feedparser-4.1/ I did that because I don t seem to have permission to properly run python setup.py ...

How to import existing ROR project?

I m new to Ruby on Rails (PHP developer here) and I need to edit an existing ROR project. I ve been using Aptana Studio for my PHP projects (switched to Zend after Aptana 2.0) but I ve kept Aptana ...

Circular #import/@class problem in ObjectiveC

I m going to use an example to properly illustrate my confusion. I can t quite wrap my head around this. In Cocoa touch, we have UIViewController and its subclass, UINavigationController. Now, UIVC ...

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...

Importing from excel "applications" using SSIS

I am looking for any tips or resources on importing from excel into a SQL database, but specifically when the information is NOT in column and row format. I am currently doing some pre-development ...

热门标签