Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
PPL Sosial
bisago
bisago-fe
Commits
b64e0763
Commit
b64e0763
authored
Jun 05, 2021
by
Putri Salsabila
Browse files
[REFACTOR] Revise timezone when submit to json
parent
fe9d8106
Pipeline
#81422
failed with stages
in 2 minutes and 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/page/filter_fasilitas/add_kegiatan.dart
View file @
b64e0763
...
...
@@ -121,9 +121,17 @@ class _AddKegiatanState extends State<AddKegiatan> {
);
var
newKegiatanData
=
newKegiatan
.
toJson
();
if
(
newKegiatanData
[
'zona_waktu'
]
==
'WIT'
)
{
newKegiatanData
[
'time_start'
]
=
newKegiatanData
[
'time_start'
]+
'+0900'
;
}
else
if
(
newKegiatanData
[
'zona_waktu'
]
==
'WITA'
)
{
newKegiatanData
[
'time_start'
]
=
newKegiatanData
[
'time_start'
]+
'+0800'
;
}
else
{
newKegiatanData
[
'time_start'
]
=
newKegiatanData
[
'time_start'
]+
'+0700'
;
}
var
multipartImageList
=
<
MultipartFile
>[];
newKegiatanData
[
'place_id'
]
=
widget
.
placeId
;
// newKegiatanData['zona_waktu'] = 'WIB';
if
(
images
!=
null
)
{
for
(
var
asset
in
images
)
{
...
...
lib/page/filter_fasilitas/postingan/detail_post_kegiatan.dart
View file @
b64e0763
...
...
@@ -260,7 +260,7 @@ class _DetailPostKegiatanPageState extends State<DetailPostKegiatanPage> {
),
SizedBox
(
width:
15
),
Text
(
'
${DateFormat('
hh
:mm').format(widget.kegiatan.timeStart)}
'
,
'
${DateFormat('
HH
:mm').format(widget.kegiatan.timeStart)}
'
,
style:
TextStyle
(
fontSize:
16
),
key:
Key
(
'Text Waktu Pelaksanaan'
),
),
...
...
Write
Preview
Supports
Markdown
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