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.

gggg not working correctly

See original GitHub issue

Describe the bug gggg not returns week year, but just a year The same functionality in moment js works correctly

const dayjs = require('dayjs');
const moment = require('moment')
const weekOfYear = require('dayjs/plugin/weekOfYear');
const weekYear = require('dayjs/plugin/weekYear');
const advancedFormat = require('dayjs/plugin/advancedFormat');
require('dayjs/locale/en-gb')
dayjs.locale('en-gb')

dayjs.extend(weekYear)
dayjs.extend(weekOfYear)
dayjs.extend(advancedFormat)
console.log(dayjs().toString())
console.log(dayjs().format('gggg-ww'))
console.log(moment().locale('en-gb').format('gggg-ww'))

Expected behavior Sun, 03 Jan 2021 20:38:27 GMT 2020-53 2020-53

Result Sun, 03 Jan 2021 20:38:27 GMT 2021-53 2020-53

Information

  • Day.js Version 1.10.1
  • OS: linux
  • Browser chrome 87
  • Time zone: UTC+3 (Europe/Moscow)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
iamkuncommented, Jan 9, 2021

🎉 This issue has been resolved in version 1.10.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

1reaction
iamkuncommented, Jan 6, 2021

bug confirmed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issuehunt
Describe the bug gggg not returns week year, but just a year The same functionality in moment js works correctly const dayjs =...
Read more >
G-G-G-G-G-G-GGN-UnIT - YouTube
Ask and you shall receive. Finally.... none other than the G-Unit is in the house. United again, they stop by GGN to talk...
Read more >
Why am I often getting a double gg and double hh from my ...
It looks like letters 'h' and 'g' are not displaying properly or behaves abnormally while working with the keyboard.
Read more >
Troubleshooting demultiplexing issues using BaseSpace ...
To find the files in your BaseSpace Hub project, click on the FASTQ Generation link in the Analyses list.
Read more >
A Combinatorial Code for Splicing Silencing: UAGG ... - PLOS
Thus, a central problem is to understand the combinatorial mechanisms ... harbor UAGG and GGGG motifs together in the correct arrangement.
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