Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Ports
openslp
openslp.localtime.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openslp.localtime.diff of Package openslp
--- ./slpd/slpd_log.c.orig 2014-02-19 17:30:21.682938372 +0000 +++ ./slpd/slpd_log.c 2014-02-19 17:32:04.664938189 +0000 @@ -182,7 +182,9 @@ void SLPDLogBuffer(const char * prefix, void SLPDLogTime(void) { time_t curtime = time(0); - SLPDLog("%s", ctime(&curtime)); + struct tm ltm; + /* we use localtime_r so that glibc does not re-init the timezone */ + SLPDLog("%s", asctime(localtime_r(&curtime, <m))); } /** Logs information about a SrvRequest message to the log file.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor