If I substituted the time() function by sceKernelLibcTime() function, it returns me the correct time and date but in GMT.
Reading the forums I saw that if I call tzset(), It would grab PSP timezone and apply it correctly but its not working... even calling tzset() the time is still in GMT.
Here is the small case:
Code: Select all
int main() {
pspDebugScreenInit();
SetupCallbacks();
tzset(); // <- does nothing....
printf("Hello World");
time_t now;
//now = time(NULL); // <-date in 01/01/1970 and GMT time
now = sceKernelLibcTime(NULL); // -< date correct but time in GMT
printf("Started %s\n", ctime(&now));
sceKernelSleepThread();
return 0;
}
Thanks for any help,
Carlos
[/code]