Skip to content

TODAY and NOW formulas return wrong value #709

Closed

Description

@SofyaNovikava

Hello,

Description

I am using TODAY and NOW formulas to get a current date but getting a date with a wrong day instead

I've checked coding and found out that these formulas return
{
day: now.getDay()
}

instead of
{
day: now.getDate()
}

These leads to getting a week day number instead of a real date

Steps to reproduce

  1. Set =today() value to A1 cell
  2. Set =day(a1) value A2 cell
  3. Check A2 value which is incorrect

Demo

https://codesandbox.io/s/affectionate-banzai-zn7m1

  • HyperFormula version: 0.6.2
  • Browser Name and version: Chrome
  • Operating System: Windows

Activity

  1. added
    Bug
    on Jun 14, 2021
  2. self-assigned this
    on Jun 14, 2021
  3. izulin commented on Jun 17, 2021

    @izulin
    Contributor

    should work now on develop branch, thanks for spotting this

  4. wojciechczerniak commented on Jun 17, 2021

    @wojciechczerniak
    Contributor

    Fixed in #710

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

Metadata

Metadata

Assignees

Labels

Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions