Skip to content

sinceDate の算出を組織タイムゾーン基準にする #256

@coji

Description

@coji

概要

analysis/reviews と analysis/feedbacks の sinceDate 算出が UTC 固定になっている。組織タイムゾーン基準に統一する。

現状

// analysis/reviews/index.tsx:65, analysis/feedbacks/_index/index.tsx:74
const sinceDate = dayjs.utc().subtract(periodMonths, 'month').startOf('day').toISOString()

あるべき姿

const sinceDate = dayjs.utc().tz(timezone).subtract(periodMonths, 'month').startOf('day').utc().toISOString()

analysis/inventory では #253 の実装時に修正済み。

影響

実用上の影響は軽微(UTC と JST の差は最大9時間、3〜12ヶ月の期間に対してほぼ無視できる)。ただしプロジェクトの日時規約(CLAUDE.md)との一貫性のために修正すべき。

対象ファイル

  • app/routes/$orgSlug/analysis/reviews/index.tsx
  • app/routes/$orgSlug/analysis/feedbacks/_index/index.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions