Homebrew Question How to change HBmenu to the correct time zone as Switch?

cucholix

00000780 00000438
Member
Joined
Jan 17, 2017
Messages
3,246
Trophies
1
Age
44
XP
6,274
Country
Chile
Will check when I get home, but It always as been off for me, it's like 3 hours off from system date/hour
I'm GMT-3
——————

Indeed the hbm hour is off by 3 hours, my system has UTC-03:00 Santiago, automatic internet time. hbl has UTC.
 
Last edited by cucholix,
  • Like
Reactions: Zukov

henrytlh

Well-Known Member
OP
Newcomer
Joined
Nov 15, 2009
Messages
72
Trophies
1
XP
295
Country
Singapore
still couldn't make the timezone shows the correct time as my system. Any ideas?

I saw a post here on gbatemp saying the solution however the link being linked is now not working and only points me to gbatemp's homepage
 

octopus

Custom Title
Member
Joined
Sep 6, 2013
Messages
439
Trophies
1
Location
/
XP
1,933
Country
Somalia
That's the code relevant to time display, but I can't figure out what might be wrong there.
Code:
    char tmpstr[32];

    time_t unixTime = time(NULL);
    struct tm* timeStruct = localtime((const time_t *)&unixTime);

    int hours = timeStruct->tm_hour;
    int minutes = timeStruct->tm_min;
    int seconds = timeStruct->tm_sec;

    snprintf(tmpstr, sizeof(tmpstr)-1, "%02d:%02d:%02d", hours, minutes, seconds);

    u32 tmpX = GetTextXCoordinate(interuimedium20, 1180, tmpstr, 'r');

    DrawText(interuimedium20, tmpX, 0 + 47 + 10, themeCurrent.textColor, tmpstr);
 

henrytlh

Well-Known Member
OP
Newcomer
Joined
Nov 15, 2009
Messages
72
Trophies
1
XP
295
Country
Singapore
hmmm the application you provided above is to sync Nintendo clock. should be different from the issue we are facing.

Our issue is the Nintendo clock on the console is showing the correct timezone but the clock in homebrew is always showing GMT+0 time.
 

octopus

Custom Title
Member
Joined
Sep 6, 2013
Messages
439
Trophies
1
Location
/
XP
1,933
Country
Somalia
@henrytlh, @cucholix, and anyone having this issue: please report back with your FW version, atmosphere version and hbmenu version (shown in top left corner of hbmenu) and whether you got it from Kosmos (might be relevant too).
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Veho @ Veho: The cybertruck is a death trap.