[Glass] DateTime asDateAndTime is buggy ...

Dale Henrichs dale.henrichs at gemtalksystems.com
Mon Oct 21 16:42:50 PDT 2019


Marten,

I think that the better implementation is this one:

asDateAndTime
   ^  DateAndTime
     year:  self  yearGmt
     month:  self  monthGmt
     day:  self  dayGmt
     hour:  self  hourGmt
     minute:  self  minuteGmt
     second:  self  secondsGmt
     offset:  Duration  zero

Need to use #yearGmt ... to get the conversion correct on the 1st of 
January....

Dale

On 10/21/19 3:57 PM, Dale Henrichs wrote:
>
> Marten,
>
> Thanks for the report. I've submitted a bug report[1] and it seems 
> that the tests run clean with your change (as they did before your 
> change, unfortunately) ...
>
> But the bugfix should be available in a day or so ...
>
> Thanks,
>
> Dale
>
> [1] https://github.com/GsDevKit/GsDevKit/issues/121
>
> On 10/21/19 2:09 PM, Marten Feldtmann via Glass wrote:
>> AsDateAndTime
>>   ^ DateAndTime
>>   year: self year
>>   month: self monthGmt
>>   day: self dayGmt
>>   hour: self hourGmt
>>   minute: self minuteGmt
>>   second: self secondsGmt
>>   offset: Duration zero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gemtalksystems.com/mailman/private/glass/attachments/20191021/74a314ac/attachment.htm>


More information about the Glass mailing list