globalizejs/globalize

Date: Handle `{_value, _number}` entries

Open

#378 创建于 2015年1月8日

在 GitHub 查看
 (5 评论) (0 反应) (0 负责人)JavaScript (4,759 star) (645 fork)batch import
date modulehelp wantednew featurequick change

描述

Globalize("haw").formatDate(new Date(), {datetime: "short"}) throws Error: E_UNSUPPORTED: Unsupported {"feature":"timezone patternv"}. But, what happens is that /main/haw/.../dateFormats/short is actually an object instead of a string (expected).

              "short": {
                "_value": "d/M/yy",
                "_numbers": "M=romanlow"
              }

haw and haw-US seems to be the only locales affected.

  1. Find such case in the UTS#35 specification.
  2. Fix implementation.

贡献者指南

Date: Handle `{_value, _number}` entries · globalizejs/globalize#378 | Good First Issue