Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-resource-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-resource-management
Commits
57e6a9b1
Commit
57e6a9b1
authored
Jan 23, 2011
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed error due to preceeding "0" in front of week_of_year like "08"
parent
240c0e82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
intranet-resource-management-procs.tcl
tcl/intranet-resource-management-procs.tcl
+5
-2
No files found.
tcl/intranet-resource-management-procs.tcl
View file @
57e6a9b1
...
...
@@ -91,6 +91,9 @@ ad_proc -public im_date_components_to_julian { top_vars top_entry} {
set ctr 0
foreach var
$top
_vars
{
set val
[
lindex
$top
_entry
$ctr
]
# Remove trailing
"0"
in week_of_year
set val
[
string
trimleft
$val
"0"
]
if
{
""
==
$val
}
{
set val 0
}
set
$var
$val
incr ctr
}
...
...
@@ -131,8 +134,8 @@ ad_proc -public im_date_components_to_julian { top_vars top_entry} {
}
if
{
0 ==
$julian
}
{
ad_return_complaint 1
"
$top
_vars<br>
$top
_entry"
ad_
return_complaint 1
"Unable to calculate data from date dimension: '
$top
_vars'"
ad_return_complaint 1
"
<b>Unable to calculate data from date dimension</b>:<br><pre>
$top
_vars<br>
$top
_entry"
ad_
script_abort
}
ns_log Notice
"im_date_components_to_julian:
$julian
, top_vars=
$top
_vars, top_entry=
$top
_entry"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment