Skip to content

fix: convert epoch timestamp into gaoc accepted format - #2344

Merged
anantjain45823 merged 2 commits into
developfrom
fix/gaocTimestamp
Jul 7, 2023
Merged

anantjain45823 merged 2 commits into
developfrom
fix/gaocTimestamp

Conversation

@anantjain45823

Copy link
Copy Markdown
Contributor

Description of the change

Problem:
We are converting timestamp into string and then passing into moment.js Library to convert the timestamp in Date Format which was throwing error.
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Hence it was not getting converted in the google accepted format.

Fix:
We are not converting it into string by default and processing EPOCH timestamp which makes it work fine even for timestamp field.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

Fix #1

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

Code review

  • This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
  • "Ready for review" label attached to the PR and reviewers mentioned in a comment
  • Changes have been reviewed by at least one other engineer
  • Issue from task tracker has a link to this pull request

@anantjain45823
anantjain45823 requested a review from a team as a code owner July 6, 2023 08:16
@anantjain45823 anantjain45823 self-assigned this Jul 6, 2023
@anantjain45823
anantjain45823 requested a review from a team as a code owner July 6, 2023 08:16
@codecov

codecov Bot commented Jul 6, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage has no change and project coverage change: -0.01 ⚠️

Comparison is base (ddc2f3f) 87.16% compared to head (1598892) 87.15%.

❗ Current head 1598892 differs from pull request most recent head d3c6ddf. Consider uploading reports for the commit d3c6ddf to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2344      +/-   ##
===========================================
- Coverage    87.16%   87.15%   -0.01%     
===========================================
  Files          490      490              
  Lines        25448    25440       -8     
  Branches      6305     6301       -4     
===========================================
- Hits         22181    22173       -8     
  Misses        2899     2899              
  Partials       368      368              

see 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sonarqubecloud

sonarqubecloud Bot commented Jul 7, 2023

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@anantjain45823
anantjain45823 merged commit 4247c74 into develop Jul 7, 2023
@sanpj2292
sanpj2292 deleted the fix/gaocTimestamp branch July 7, 2023 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants