Date format changes after exporting to Excel from Jira Data Center
プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。
このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
症状
The date format shown in Excel does not reflect the format shown in the Jira application's user interface.
原因
- Excel determines the date format based on local settings. If your local machine has a different date format than Jira applications, then the settings will not match each other.
- There is also a known bug regarding the date format change even though the setting in Javascript is configured correctly (JRASERVER-67469 - Inconsistency date Export using Date Custom Field with different Language Configured).
診断
Ensure the end user machine's Regional and Language setting is not other than English.
ソリューション
- Change the date format on your local machine to the one used in Jira applications.
- Use Google Excel Sheet (Ensure you are using English Language else the issue will persist)
- Open Google Excel
- Select File > Import > Upload > Upload the CSV file
- Once the import is completed, a screen will prompt for more details. Update the Separator type accordingly.
- Click on import data and open it
- The wrong date data will be imported to Google Excel, we will need to select 2 columns which having the wrong date format.
- Select Format > Number > Date Time and all date columns will be formatted accordingly.
- Export it as a new Excel file and you can use it as usual in Microsoft Excel without issue now.
ルック アンド フィール ページでは、Jira のユーザー インターフェイス全体で時間や日付を表示する方法をカスタマイズできます。
日付と時刻を指定する際、それらはJava の SimpleDateFormat に基づいている必要があります。
[ルック アンド フィール] ページで編集モードに入っていないときに [日付/時刻の形式] セクションの右端の列に示される例は、さまざまな形式の Jira での表示形式を示しています。
日付/時刻のフォーマットでは相対時間が使用される
課題の日付/時刻フィールドは、絶対日付/時刻形式ではなく、相対日付/時刻形式で表示されます (例: "2013 年 5 月 20 日 12 : 00 PM" ではなく "昨日")。引き続き、フィールドにカーソルを合わせると、絶対日付/時刻を表示できます。
日付/時間フォーマットは 1 週間後に絶対日付に戻ります。
日付ピッカーのフォーマットの設定
Be aware that these options are different from the Date/Time Formats configuration options on the Look and Feel page, which only customize JIRA's presentation of times and dates to users.
日付ピッカーの日付または日付/時刻形式は、1 組のプロパティ (1 つは Java 用、もう 1 つは JavaScript 用) によって定義されます。定義した日付 (または日付/時間) ピッカーが正しく機能するには、2 つのプロパティが一致している必要があります。
- Java 形式については、Java の SimpleDateFormat に基づいて、日付/時刻形式を指定します。
- JavaScript 形式については、 Unix の日付形式に基づいて、日付/時刻形式を指定します。
以下にいくつか示すのは、米国ベースの日付設定の例です。
日付の表示形式 |
|
| コメント |
|---|---|---|---|
| 2010-10-01 | yyyy-MM-dd | %Y-%m-%d | ISO 8601 形式 |
Oct/1/10 |
|
| |
10/01/10 |
|
| |
2010 年 10 月 1 日 |
|
| |
10/01/2010 |
|
|
以下に、いくつかの日付/時間設定を示します。
選択した日付 |
|
| コメント |
|---|---|---|---|
| 2010-10-15 08:50 | yyyy-MM-dd HH:mm | %Y-%m-%d %H:%M | ISO 8601 形式 |
15/Oct/10 8:50 AM |
|
| |
10/15/10 08:50 AM |
|
|