Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
1fdff271
Commit
1fdff271
authored
9 years ago
by
Raphaël Doursenaud
Browse files
Options
Downloads
Patches
Plain Diff
Fixed type hintings
parent
053f6ae4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/core/db/sqlite3.class.php
+7
-6
7 additions, 6 deletions
htdocs/core/db/sqlite3.class.php
with
7 additions
and
6 deletions
htdocs/core/db/sqlite3.class.php
+
7
−
6
View file @
1fdff271
...
...
@@ -1427,10 +1427,10 @@ class DoliDBSqlite3 extends DoliDB
/**
* calc_daynr
*
* @param
str
in
g
$year Year
* @param
str
in
g
$month Month
* @param
string
$day Day
* @return
string La date formatee.
* @param in
t
$year Year
* @param in
t
$month Month
* @param
int
$day Day
* @return
int Formatted date
*/
private
static
function
calc_daynr
(
$year
,
$month
,
$day
)
{
$y
=
$year
;
...
...
@@ -1448,8 +1448,9 @@ class DoliDBSqlite3 extends DoliDB
/**
* calc_weekday
*
* @param string $daynr ???
* @param string $sunday_first_day_of_week ???
* @param int $daynr ???
* @param bool $sunday_first_day_of_week ???
* @return int
*/
private
static
function
calc_weekday
(
$daynr
,
$sunday_first_day_of_week
)
{
$ret
=
floor
((
$daynr
+
5
+
(
$sunday_first_day_of_week
?
1
:
0
))
%
7
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment