question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[V4-beta.7] ion-datetime not bind as ISO-8601 format

See original GitHub issue

Bug Report

Ionic Info

Ionic:

   ionic (Ionic CLI)          : 4.1.1 (/Users/joeldaros/.nvm/versions/node/v8.11.3/lib/node_modules/ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.7
   @angular-devkit/core       : 0.7.5
   @angular-devkit/schematics : 0.7.5
   @angular/cli               : 6.1.5
   @ionic/ng-toolkit          : 1.0.7
   @ionic/schematics-angular  : 1.0.5

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.0.2, (and 7 other plugins)

System:

   ios-deploy : 2.0.0
   NodeJS     : v8.11.3 (/Users/joeldaros/.nvm/versions/node/v8.11.3/bin/node)
   npm        : 6.4.0
   OS         : macOS High Sierra
   Xcode      : Xcode 9.4 Build version 9F1027a

Describe the Bug The ion-datetime component do not bind his value to a ISO-8601 format when changed. It binds the date to a object:

{
  "dateBk": {
    "day": { "text": "21", "value": 21, "columnIndex": 0 },
    "month": { "text": "Aug", "value": 8, "columnIndex": 1 },
    "year": { "text": "2017", "value": 2017, "columnIndex": 2 }
  }
}

Example: The initial date (ISO-8601) of component is correct: image

When you pick another date from the component it binds to a object instead of a string in 8601 format like described in documentation:

image

Steps to Reproduce Steps to reproduce the behavior:

  1. Change the date from the ion-datetime component
  2. Check the results.

Related Code

https://github.com/MrSparklle/Inc4

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:13
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
Chethannpcommented, Sep 24, 2018

Any idea on when this will be fixed?

4reactions
MrSparkllecommented, Oct 16, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

[V4-beta.7] ion-datetime not bind as ISO-8601 format #15408
Steps to reproduce the behavior: Change the date from the ion-datetime component; Check the results. Related Code. https://github.com/MrSparklle ...
Read more >
Ionic Please provide a valid ISO 8601 datetime format ...
I am trying to bind my Ionic DateTime component ...
Read more >
BUG: ion-datetime not in ISO 8601 Format - Ionic Forum
I am NOT getting the ISO 8601 Datetime Format: YYYY-MM-DDTHH:mmZ from the ion-datetime control. According to the docs for ion-datetime ionic ...
Read more >
Ionic Forum - Latest topics - RSSing.com
This command is not working with IONIC-v4-BETA, please help on this issue, ... I'm getting this error “Please provide a valid ISO 8601...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found