Fakultas Ilmu Komputer UI

Commit bcb60827 authored by Yoga Pratama's avatar Yoga Pratama
Browse files

[CHORES] Change date format

parent f7061b7b
......@@ -2,6 +2,6 @@ import 'package:intl/intl.dart';
class CustomSerializer {
static DateTime stringToDateTime(String date) {
return DateFormat('yyyy-MM-dd hh:mm').parse(date);
return DateFormat('dd-MM-yyyy hh:mm:ss').parse(date);
}
}
......@@ -482,7 +482,7 @@ class _DetailPostPageState extends State<DetailPostPage> {
name,
style: const TextStyle(fontSize: 18),
),
Text('${DateFormat('dd MMMM yyy hh:mm').format(date)}',
Text('${DateFormat('dd MMMM yyyy hh:mm').format(date)}',
style: const TextStyle(color: grayPrimary, fontSize: 14))
],
),
......
......@@ -293,7 +293,6 @@ class LoginState extends State<Login> {
final response = await http
.post('${ApiFlavor.getBaseUrl()}/api-token-auth/', body: data);
if (response.statusCode == 200) {
print('here');
final tokenMap = jsonDecode(response.body);
setState(() {
sharedPreferences
......@@ -382,7 +381,6 @@ class LoginState extends State<Login> {
await googleSignInAccount.authentication;
final token = googleSignInAuthentication.accessToken;
print(token);
await login(
_currentUser.email, '', 'true', token, _currentUser.displayName);
sharedPreferences = await SharedPreferences.getInstance();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment