Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTC time is not available in all regions #36

Closed
longcat99 opened this issue Dec 14, 2024 · 3 comments
Closed

UTC time is not available in all regions #36

longcat99 opened this issue Dec 14, 2024 · 3 comments

Comments

@longcat99
Copy link

msposd/osd.c

Line 1186 in 3dca811

struct tm *tm = gmtime(&t);

time_t t = time(NULL);
struct tm *tm = localtime(&t); // 改为 localtime 获取本地时间
strftime(s, 64, timefmt, tm);

@lida2003
Copy link
Contributor

@longcat99 Good catch, #39 , Hope it will be accepted.

@tipoman9
Copy link
Collaborator

Merged, thanks!

@lida2003
Copy link
Contributor

I have found an issue when it comes to IPC.
OpenIPC don't have that much flash rom for zoneinfo, and it was NOT build in firmware.

It's OK for my raspberry Pi, but NOT OK for my OpenIPC camera. @tipoman9 @longcat99

$ du -sh /usr/share/zoneinfo
5.8M    /usr/share/zoneinfo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants