mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 12:56:28 -04:00
16 lines
660 B
C++
16 lines
660 B
C++
--- ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx.orig 2001-09-21 10:00:28.000000000 +0200
|
|
+++ ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx 2009-02-24 18:59:57.000000000 +0100
|
|
@@ -103,6 +103,13 @@
|
|
|
|
Handle(StepBasic_CoordinatedUniversalTimeOffset) zone =
|
|
new StepBasic_CoordinatedUniversalTimeOffset;
|
|
+
|
|
+ struct tm newtime;
|
|
+ time_t ltime;
|
|
+ ltime=time(<ime);
|
|
+ localtime_r(<ime, &newtime);
|
|
+ int timezone=newtime.tm_gmtoff;
|
|
+
|
|
Standard_Integer shift = Standard_Integer(timezone);
|
|
Standard_Integer shifth = abs ( shift ) / 3600;
|
|
Standard_Integer shiftm = ( abs ( shift ) - shifth * 3600 ) / 60;
|