Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
UPHRH-lms-service
Commits
8dd51b80
Unverified
Commit
8dd51b80
authored
2 years ago
by
Naga Prasad Moka
Committed by
GitHub
2 years ago
Browse files
Options
Download
Patches
Plain Diff
Update CourseBatchUtil.java
parent
252284dc
master
bootcamp
helmchart
release-5.0.1
release-5.0.2
release-5.1.0
release-5.2.0
release-5.2.1
release-5.3.0
release-5.3.1
release-5.4.0
release-5.3.1_RC1
release-5.3.0_RC1
release-5.2.0_RC2
release-5.2.0_RC1
release-5.1.0_RC2
release-5.1.0_RC1
release-5.0.1_RC3
release-5.0.1_RC2
release-5.0.1_RC1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
course-mw/course-actors-common/src/main/java/org/sunbird/learner/util/CourseBatchUtil.java
+1
-6
...c/main/java/org/sunbird/learner/util/CourseBatchUtil.java
with
1 addition
and
6 deletions
+1
-6
course-mw/course-actors-common/src/main/java/org/sunbird/learner/util/CourseBatchUtil.java
+
1
−
6
View file @
8dd51b80
...
...
@@ -207,12 +207,7 @@ public class CourseBatchUtil {
SimpleDateFormat
dateTimeFormat
=
ProjectUtil
.
getDateFormatter
();
dateFormat
.
setTimeZone
(
TimeZone
.
getTimeZone
(
ProjectUtil
.
getConfigValue
(
JsonKey
.
SUNBIRD_TIMEZONE
)));
dateTimeFormat
.
setTimeZone
(
TimeZone
.
getTimeZone
(
ProjectUtil
.
getConfigValue
(
JsonKey
.
SUNBIRD_TIMEZONE
)));
//replace actual cloud url with template url
if
(
courseBatch
.
getCertTemplates
().
values
().
contains
(
JsonKey
.
CLOUD_STORE_BASE_PATH
)){
String
templateUrl
=
(
String
)
courseBatch
.
getCertTemplates
().
get
(
JsonKey
.
TEMPLATE_URL
);
String
modifiedUrl
=
templateUrl
.
replace
(
JsonKey
.
CLOUD_STORE_BASE_PATH
,
JsonKey
.
CLOUD_STORE_BASE_PATH_PLACEHOLDER
);
courseBatch
.
getCertTemplates
().
replace
(
JsonKey
.
TEMPLATE_URL
,
templateUrl
,
modifiedUrl
);
}
Map
<
String
,
Object
>
courseBatchMap
=
mapper
.
convertValue
(
courseBatch
,
Map
.
class
);
changeInDateFormatAll
.
forEach
(
key
->
{
try
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets