VA 7.0.x - DateAndTime class>primitiveSystemOffset

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

VA 7.0.x - DateAndTime class>primitiveSystemOffset

Postby marten » Thu Dec 14, 2006 5:36 am

I just noticed, that the bug in this method is still not fixed - ok, its winter and it does not matter. But it should be fixed at last in 7.5.

I still think, that is would be much better, if we have a public open list of errors for this product ! Then we can also see, what error description has reached the developers and maintainers.

Marten
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Postby solveig » Tue Dec 19, 2006 11:41 am

Hi, Marten,

You are correct. DateAndTime class>primitiveSystemOffset still does not return the proper offset during daylight savings time.

We still have the Windows workaround you sent us. I will post it here, but we need to address this issue on Unix platforms.

---start of DateAndTime class>primitiveSystemOffset method
primitiveSystemOffset
| daylightSavingInAction baseOffset dstOffset timezoneInformation |

"
<primitive: TzOffset>
^self primitiveFailed
"
timezoneInformation := OSTimeZoneInformation calloc: 1.
daylightSavingInAction := timezoneInformation getTimeZoneInformation.

baseOffset := timezoneInformation Bias.
dstOffset := timezoneInformation DaylightBias.

timezoneInformation free.

^(baseOffset
+ (daylightSavingInAction= PlatformConstants::TimeZoneIdDaylight
ifTrue:[ dstOffset]
ifFalse:[ 0 ])) * 60


---end of DateAndTime class>primitiveSystemOffset method

A public list of known errors makes for transparency but raises other issues. Would periodic beta releases with a list of fixes be useful to you?

Regards,
Solveig
solveig
Moderator
 
Posts: 57
Joined: Tue Oct 17, 2006 6:30 am

Postby marten » Tue Dec 19, 2006 1:03 pm

solveig wrote:
A public list of known errors makes for transparency but raises other issues. Would periodic beta releases with a list of fixes be useful to you?

Regards,
Solveig


Yes other issues may be there - but I can not imagine, that these issues are important for developers. Perhaps more for marketing persons or layers.

And no - a periodic beta will not help me much.


Marten
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: No registered users and 1 guest