This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/12195] New: pass current user-space timezone


http://sourceware.org/bugzilla/show_bug.cgi?id=12195

           Summary: pass current user-space timezone
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap@sources.redhat.com
        ReportedBy: fche@redhat.com


ctime(gettimeofday_s())  gives only UTC data.  We've had a request to
generate local time zone dates too.  Here's one possible way:

* extend staprun to pass a new message to the runtime upon startup,
  containing the current glibc tz_gmtoff value.
* write a new tapset function localctime() that subtracts that value
  from the incoming number of seconds

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]