Project

General

Profile

Actions

Backport(バックポート) #4221

closed

Bug(バグ) #4220: 通知APIのレスポンスの created_at が、Thu, 01 Jan 1970 09:00:00 +0900 と出力される

通知APIのレスポンスの created_at が、Thu, 01 Jan 1970 09:00:00 +0900 と出力される

Added by kaoru n over 7 years ago. Updated over 6 years ago.

Status:
Fixed(完了)
Priority:
Normal(通常)
Assignee:
Target version:
Start date:
2017-09-15
Due date:
% Done:

100%

Estimated time:

Description

Overview (現象)

通知APIのレスポンスの created_at が、[Thu, 01 Jan 1970 09:00:00 +0900] と出力される

Causes (原因)

op_api_notification 関数にて created_at を文字列に変換する際に strtotime を使用しているが、通知センターの created_at は整数値で時刻を格納しているので strtotime を通さなくてよい

Way to fix (修正内容)

strtotime を使用しないよう修正する

Actions

Also available in: Atom PDF