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.

原因

  1. 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.
  2. There is also a known bug regarding the date format change even though the setting in javascript is configured correctly ( JRASERVER-67469 - Getting issue details... STATUS ). 

診断

Ensure the end user machine Regional and Language setting is not other than English.

ソリューション

  1. Change the date format on your local machine to the one used in JIRA applications.
  2. Use Google Excel Sheet (Ensure you are using English Language else issue will persist)
    1. Open Google Excel
    2. Select File > Import > Upload > Upload the CSV file
    3. Once import completed, it will prompt up a screen asking for more details, update the Separator type accordingly.
    4. Click on import data and open it
    5. The wrong date data will be imported to Google Excel, we will need to select 2 columns which having wrong date format.
    6. Select Format > Number > Date Time and all date column will be formatted accordingly.
    7. 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" ではなく "昨日")。引き続き、フィールドにカーソルを合わせると、絶対日付/時刻を表示できます。

(info) 日付/時間フォーマットは 1 週間後に絶対日付に戻ります。

このフォーマットを切り替えたい場合、jira.lf.date.relativize アプリケーション プロパティを "false" に設定します。詳細については「Jira の高度な構成」および「Jira サーバーで標準日付を表示する」をご確認ください。

日付ピッカーのフォーマットの設定

Jira システム管理者は [詳細設定] ページのオプションから、Jira のユーザー インターフェイス全体で使用される日付ピッカーの形式を設定できます。


(info) これらのオプションは、ユーザー単位での Jira の日付および時間の表示形式をカスタマイズする、[ルック アンド フィール] ページの日付/時間形式設定オプションとは異なる点にご注意ください。

(warning) 日付ピッカーの日付または日付/時刻形式は、1 組のプロパティ (1 つは Java 用、もう 1 つは JavaScript 用) によって定義されます。定義した日付 (または日付/時間) ピッカーが正しく機能するには、2 つのプロパティが一致している必要があります。

以下にいくつか示すのは、米国ベースの日付設定の例です。

日付の表示形式

jira.date.picker.java.format プロパティの値

jira.date.picker.javascript.format プロパティの値

コメント
2010-10-01yyyy-MM-dd%Y-%m-%dISO 8601 形式

Oct/1/10

MMM/d/yy

%b/%e/%y


10/01/10

MM/dd/yy

%m/%d/%y


2010 年 10 月 1 日

MMM d, yyyy

%b %e, %Y


10/01/2010

MM/dd/yyyy

%m/%d/%Y


以下に、いくつかの日付/時間設定を示します。

選択した日付

jira.date.time.picker.java.format プロパティの値

jira.date.time.picker.javascript.format プロパティの値

コメント
2010-10-15 08:50yyyy-MM-dd HH:mm%Y-%m-%d %H:%MISO 8601 形式

15/Oct/10 8:50 AM

dd/MMM/yy h:mm a

%d/%b/%y %l:%M %p


10/15/10 08:50 AM

MM/dd/yy hh:mm a

%m/%d/%y %I:%M %p


最終更新日 2018 年 6 月 15 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.