GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — JavaScript Date functions not fully working · Issue #8472 · NativeScript/NativeScript

JavaScript Date functions not fully working #8472

New issue
Copy link
New issue
Copy link
Closed
Closed
JavaScript Date functions not fully working#8472
Copy link

Description

@CatchABus
CatchABus
opened on Mar 29, 2020
Issue body actions

Environment

  • CLI: 6.4
  • Cross-platform modules:
  • Android Runtime: 6.4.1
  • iOS Runtime:
  • Plugin(s):

Describe the bug
JavaScript 'Date' format methods like "toLocaleString" or "toLocaleDateString" don't seem to respect their 'options' parameter formatting properties. This issue occurs on Android.

Expected behavior
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString

Activity

  1. NickIliev commented on Mar 30, 2020

    @NickIliev
    NickIliev
    on Mar 30, 2020
    Contributor
    More actions

    The Date methods are depending on the Virtual machines that are used by the runtimes 9V8 and JavaScript Core) and also on the version of the Node.js. That said there are a ton of issues reported and related to Date interpretations by the above and all of them

    https://www.google.com/search?q=v8+toLocalDateString&rlz=1C1CHBF_enBG781BG781&oq=v8+toLocalDateString&aqs=chrome..69i57j33.16782j0j4&sourceid=chrome&ie=UTF-8

    https://www.google.com/search?rlz=1C1CHBF_enBG781BG781&sxsrf=ALeKk00Ti99fevd-D9nj1flOeZjAfqZ0Fw%3A1585558396057&ei=fLOBXv-SA8iimwX3qIO4BQ&q=javascriptCore+toLocalDateString&oq=javascriptCore+toLocalDateString&gs_lcp=CgZwc3ktYWIQAzIHCCMQsAIQJzoICAAQBxAKEB46CAgAEAgQDRAeOgYIABANEB5Q3d8BWOr0AWDw9wFoAHAAeACAAXiIAfsMkgEENS4xMZgBAKABAaoBB2d3cy13aXo&sclient=psy-ab&ved=0ahUKEwj_wN6n6cHoAhVI0aYKHXfUAFcQ4dUDCAs&uact=5

    https://www.google.com/search?rlz=1C1CHBF_enBG781BG781&sxsrf=ALeKk01Y2tKs2dRh2_-kGtxYSJhZw_7JZw%3A1585558604576&ei=TLSBXvXbIoSJk74P7Ia4uAc&q=nodejs+toLocalDateString+not&oq=nodejs+toLocalDateString+not&gs_lcp=CgZwc3ktYWIQAzIFCCEQoAE6BAgAEEc6BggAEBYQHlCFSViTUGDxWWgAcAJ4AIABvAGIAb0EkgEDMC40mAEAoAEBqgEHZ3dzLXdpeg&sclient=psy-ab&ved=0ahUKEwj1sZWL6sHoAhWExMQBHWwDDncQ4dUDCAs&uact=5

    None of the issues can be fixed in NativeScript so you need to use a workaround (e.g., use a specific date format that works on Android)

    Reacted by Dimitris-Rafail Katsampas
  2. NickIliev
    closed this as completedon Mar 30, 2020
  3. NickIliev commented on Mar 30, 2020

    @NickIliev
    NickIliev
    on Mar 30, 2020
    Contributor
    More actions

    See also this thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.