mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #1097] Failing to get correct NTP time returned when using WiFiManager! #938
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#938
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ZebNZ on GitHub (Jul 14, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1097
Hi all,
I am trying to get the current GMT time from an NTP server.
I connect to WiFi successfully using the WiFiManager Library, but I get this "date and time" returned:
Epoch Time: 14
Hour: 0
Minutes: 0
Seconds: 14
Week Day: 4
Month: 1
Year: 1970
Current date: 1970-01-04T00:00:14Z
Note that the numerals after the "T" increment (like a stopwatch)
Code (not working):
But this code which connects to the WiFi network without using the WiFiMananger works fine!
Code (working):
I guess that this means there is a problem with it connecting to WiFi using the WiFiManager library, even though it says it has connected successfully?
Does anyone know what possibly might be wrong?
Any help would be greatly appreciated!
Thanks,
Zeb
@ZebNZ commented on GitHub (Jul 14, 2020):
Just needed to get rid of the "Static IP" :)