プロジェクト

全般

プロフィール

Vote #81767

完了

Баги

Admin Redmine さんがほぼ4年前に追加. ほぼ4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
REST API_32
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
32
version_id:
0
issue_org_id:
36385
author_id:
408361
assigned_to_id:
0
comments:
1
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
168
ステータス-->[Closed]

説明

Hello.
Rest api GET /time_entries.json gives time in wormat 0.75.
Can I change the date format to 0.45 h?

Since you have very rough rounding and the time does not correspond to reality.
Or how can I get the total elapsed time of a user for a date.

Best regards,
Roman (redmine-evolution.com)


journals

The logged time entries are always stored as a fractional hours (i.e. the format you also get from the API). The 45 minutes in your example are thus stored as @0.75@ hours in the database and returned as such to API requests. The returned data is as precise as possible given the underlying data format in the database.

If you want to convert the returned value to hours / minutes on your client (e.g. when showing the data somewhere), you need to multiply the fractional part of the number by 60 yourself.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ4年前に更新

  • カテゴリREST API_32 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0