Mirror of https://github.com/roostorg/coop github.com/roostorg/coop
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

#7 Fix datetime format on generated mock items (#13)

authored by

Juan Mrad and committed by
GitHub
2ba1fe8a 728b557b

+1 -1
+1 -1
client/src/webpages/dashboard/item_types/itemTypeUtils.ts
··· 184 184 case 'BOOLEAN': 185 185 return Math.random() < 0.5; 186 186 case 'DATETIME': 187 - return new Date().toLocaleTimeString(); 187 + return new Date().toISOString(); 188 188 case 'GEOHASH': 189 189 // Geohashes are always 6 characters long, so we just hardcode this one 190 190 // for example purposes. NB: not all 6 character strings are valid geohashes.