NativeScript / NativeScript/plugins

[@nativescript/datetimepicker] Android Datepicker returns March when February is selected

オープン
#60 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
206
フォーク
123
平均マージ
2日 1時間
マージ済み PR(30日)
1

説明

As mentioned in the title, when we select the month as february, march is returned regardless of the date and the year. We have updated and downgraded the version of the plugin, but the bug still persist

This is the code that we have

DateTimePicker.pickDate({​​​​​​​​
    context:args.object._context,
    title:global.dateTimePickerTitle(),
      }​​​​​​​​)
        .then((result) => {​​​​​​​​
            // "2021-03-27T16:00:00.000Z" is returned instead of "2021-02-27T16:00:00.000Z" when we selected 27 february 2021
            console.log(JSON.stringify(result)); 
        });

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、提供された DateTimePicker.pickDate の例を使って Android で 2 月の選択を再現し、その後 datetimepicker の Android 実装を追跡します。2 月を選択すると 3 月ではなく 2 月の日付が返されることを確認できれば完了です。示されている 2021-02-27 のケースも含みます。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, typescript
領域
mobile-dev
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。