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.

ERROR: Enter a valid date/time

See original GitHub issue

Hi,

I woke up this morning to BabyBuddy being down, checked github and noticed there was an issue with the latest release, so while the fix was being worked on I decided to move BabyBuddy from being a docker run command to a docker-compose file.

docker-compose file:

version: "2.1"
services:
  app:
    image: lscr.io/linuxserver/babybuddy:amd64-latest
    environment:
      - TZ=Pacific/Auckland
    volumes:
      - config:/config
    ports:
      - 8000:8000
    restart: unless-stopped
    networks:
      default:
        ipv4_address: 10.10.11.211
    dns:
      - 10.10.11.1
      
networks:
  default:
    external:
      name: public
      
volumes:
  config:

I have now pulled the latest image 1.9.1-ls16, and I am having an issue with date/time when adding entries. See example below.

Screenshot_20211115_135754

I have tried different TZ variables but it doesn’t seem to change the outcome.

When I go to a running timer, and say, add it as a sleep timer, the time and date values appear then disappear.

I believe I was running version 1.8, I can roll back to a backup from last night to check.

Anyone have any suggestions?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:37 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
cdubzcommented, Dec 13, 2021

Ok all, I think I have this resolved on master – would appreciate if someone here is able to test and confirm but regardless I’ll create a new release in the next 24 hours or so. Big thanks to @kdrobnyh for the sleuthing that led me to be able to reproduce and fix this.

2reactions
kdrobnyhcommented, Dec 13, 2021

I have some updates about the issue: we have 2 BabyBuddy users. Today I switched to Docker and updated BabyBuddy to 1.9.2. I checked from my phone - everything seemed to work as usual. However, when my wife tried to add a new entry, she encountered this error (Enter a valid date/time.). POST messages were identical from both users, but one received error, the other did not. I checked the database - for one user the language was “en-US” (no errors), for another one is “en” (the error mentioned above). In GUI settings (on the website), both users have chosen language “English (US)”. I believe that caused the issue, since when I changed the language, everything started to work again. That also supports @lelandbay 's comment above.

Read more comments on GitHub >

github_iconTop Results From Across the Web

String was not recognized as a valid DateTime
I´m having the following problem when I try to execute the flow: "String was not recognized as a valid DateTime".
Read more >
Solved: SharePoint Error - String was not recognized as a
This happens because the date value are not formatted using the ISO 8601 specifications. To avoid this error you can call the ToString()...
Read more >
Error: String was not recognized as a valid DateTime : Issue in ...
Hi, I am trying to convert a string into desired format. e.g. If string/datetime is 14-02-2022 06:32:00 then output should be Feb22.
Read more >
Power Automate: Valid Date/Time Inputs | console.log('Charles');
Create a dummy list and add two extra string columns: formatDateTime() and IsFormatSuccessful. Essentially, the flow is triggered whenever an ...
Read more >
how to fix string was not recognized as a valid DateTime
The reason is failed in other computers is likely to be they have different Cultures, one computer could be trying to parse in...
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