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.

Format error in iOS 11.3

See original GitHub issue

In PC dayjs('2018-09-06T17:00:00.000+0000') return Thu, 06 Sep 2018 17:00:00 GMT In Iphone dayjs('2018-09-06T17:00:00.000+0000') return Invalid Date

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
ghostcommented, Feb 17, 2019

@shenghanqin I use

import dayjs from 'dayjs'
import customParseFormat from 'dayjs/plugin/customParseFormat'
dayjs.extend(customParseFormat)
dayjs('2018-09-06T17:00:00.000+0000', 'YYYY-MM-DDTHH:mm:ss.000ZZ').format()

and works well

7reactions
Przeblyskcommented, May 17, 2018

var startTime = “2018-05-18T16:00:00.000+0000”; startTime = startTime.replace(/(+\d{2})(\d{2})$/, “$1:$2”);

it’s work

Read more comments on GitHub >

github_iconTop Results From Across the Web

NSDateFormatter Issue - Getting wr… | Apple Developer Forums
iOS 11.3.1 and 11.1.2. Summary: getting wrong DateTime Format In iPhone Device. we using DateTime format as yyyy-MM-dd HH:mm:ss and replace ...
Read more >
Date Format Error in swift - ios - Stack Overflow
By doing this you can able to create the Date object. @Dhruv try this code it will work for creating date object as...
Read more >
How to fix "Files" errors in GarageBand on iOS 11 (iPhone/iPad)
How to fix and troubleshoot the most common files errors in GarageBand on iOS 11 ( iPhone / iPad )If you have used...
Read more >
Ixpand and Wireless Connect: Unsupported Format on iOS 11
Due to this thumbnails are not generated for images and you will receive an unsupported format message when opening images created with is...
Read more >
iOS 11's new image format might pose problems for PC users
HEIC will be used by default on new photos on iOS 11, and it's designed to save you storage space. As it's a...
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