Solved TD-23688: SalDateWeekNumber Returns wrong weeknumber in 2018

Report TD 5.x and 6.x bugs and possible workarounds.
Steinbock
Germany
Posts: 2
Joined: 29 Dec 2017, 13:52
Location: Berlin, Germany

TD-23688: SalDateWeekNumber Returns wrong weeknumber in 2018

Post by Steinbock » 29 Dec 2017, 14:15

Hi all,
SalDateWeekNumber( ) Returns 2 for first week in 2018 and not 1. 2018 Ends with weeknumber 54 and not 52! 2019 also starts with weeknumber 2.
In 2017 the weeknumbers are correct 1 (start) and 52 (start). DatePicker also Shows wrong weeknumbers beginning with year 2018.

We are using a shift planner, and we really Need the week numbers.

(using TD 6.3 SP2 on Windows 7)

Any suggestions?

Nils Kulinna
MTU Maintenance Berlin-Brandenburg GmbH
Germany
http://www.mtu.de
You do not have the required permissions to view the files attached to this post.

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 1100
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

SalDateWeekNumber Returns wrong weeknumber in 2018

Post by Dave Rabelink » 29 Dec 2017, 14:32

This is already reported:

viewtopic.php?f=26&t=45728

I believe there is a SalDateWeekNumber implemented in SalExtension:

http://samples.tdcommunity.net/index.ph ... Extension/

(in SalDateW.apl)
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Steinbock
Germany
Posts: 2
Joined: 29 Dec 2017, 13:52
Location: Berlin, Germany

SalDateWeekNumber Returns wrong weeknumber in 2018

Post by Steinbock » 29 Dec 2017, 15:02

Hi Dave,

thanks a lot. Now the calculation works correctly with using the function from SalDateW.apl
(Now we have to use the DatePicker without weeknumbers.)

Nils

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 1100
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

TD-23688: SalDateWeekNumber Returns wrong weeknumber in 2018

Post by Dave Rabelink » 14 Feb 2018, 08:32

This is fixed in TD 7.0.4
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Return to “Bug Reports”

Who is online

Users browsing this forum: [Ccbot] and 1 guest