Date format changes after exporting to Excel
症状
The date format shown in Excel does not reflect the date format which is shown in the JIRA application 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-67469Getting issue details... STATUS ).
診断
Ensure the end user machine 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 issue will persist)
- Open Google Excel
- Select File > Import > Upload > Upload the CSV file
- Once import completed, it will prompt up a screen asking 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 wrong date format.
- Select Format > Number > Date Time and all date column will be formatted accordingly.
- Export it as a new Excel file and you can use it as usual in Microsoft Excel without issue now.
日付と時刻を指定する際、それらはJava の SimpleDateFormat に基づいている必要があります。
[ルック アンド フィール] ページで編集モードに入っていないときに [日付/時刻の形式] セクションの右端の列に示される例は、さまざまな形式の Jira での表示形式を示しています。
日付/時刻のフォーマットでは相対時間が使用される
課題の日付/時刻フィールドは、絶対日付/時刻形式ではなく、相対日付/時刻形式で表示されます (例: "2013 年 5 月 20 日 12 : 00 PM" ではなく "昨日")。引き続き、フィールドにカーソルを合わせると、絶対日付/時刻を表示できます。
日付/時間フォーマットは 1 週間後に絶対日付に戻ります。
このフォーマットを切り替えたい場合、jira.lf.date.relativize
アプリケーション プロパティを "false" に設定します。詳細については「Jira の高度な構成」および「Jira サーバーで標準日付を表示する」をご確認ください。
日付ピッカーのフォーマットの設定
Jira システム管理者は [詳細設定] ページのオプションから、Jira のユーザー インターフェイス全体で使用される日付ピッカーの形式を設定できます。
これらのオプションは、ユーザー単位での Jira の日付および時間の表示形式をカスタマイズする、[ルック アンド フィール] ページの日付/時間形式設定オプションとは異なる点にご注意ください。
日付ピッカーの日付または日付/時刻形式は、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 |
|
|