Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

First day of the we...
 
Notifications
Clear all

First day of the week

6 Posts
3 Users
0 Reactions
3,079 Views
(@mohamedabdelwahed)
Posts: 17
Active Member
Topic starter
 
[#5616]

Gentlemen ,
Off days are Friday and Saturday which is set in the global parameters , However in the time sheet still Monday is the first day of the week , How can this be solved.
Regards


 
Posted : 11 Dec 2018 17H28
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Timesheet screen does not depend on off days.
I always start on monday...


 
Posted : 11 Dec 2018 17H41
(@mohamedabdelwahed)
Posts: 17
Active Member
Topic starter
 

You always start on Monday because it is the first working day in Europe and USA , In the middeleast the first day working day is Sunday and some places it is Saturday , Can enhancement be added to this area allowing you to choose the first day appearing in the week of time sheet


 
Posted : 12 Dec 2018 13H29
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

The request already exists in the roadmap (#2704) with low priority (high cost, low benefit)


 
Posted : 12 Dec 2018 14H01
(@ma_bou)
Posts: 24
Active Member
 

Hello,

I'm looking to modify the code myself to implement that function since it will be easier for our organization.

Could you point me out where to start looking since projeqtor is a big project.

Regards


 
Posted : 27 Jul 2020 15H03
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Unfortunately it(s not an easy piece of cake.
There are many places where "firt day of week" is important.

Maybe you can have a look at function

function firstDayofWeek($week=null, $year=null) {

because this, at least, will have to be changed.

But it's not the only one. Have a look at

function lastDayofWeek($week=null, $year=null) {
function weekNumber($dateValue) {
function weekFormat($dateValue) {
function getWeekNumberFromDate($date) {

and possibly other functions (at least all thoose who deal with week)

Andd there you'll have to investagate everywhere thoose functions are called to check how their result is used...


 
Posted : 28 Jul 2020 11H21
Share:

Scroll to Top