Change field creation_ts * 1000 to creation_ts_ms

This commit is contained in:
dklimpel 2020-06-16 10:05:38 +02:00 committed by Manuel Stahl
parent 627f3d2917
commit aaf1ebb909
4 changed files with 5 additions and 5 deletions

View file

@ -160,7 +160,7 @@ export const UserEdit = props => (
helperText="resources.users.helper.deactivate"
/>
<DateField
source="creation_ts"
source="creation_ts_ms"
showTime
options={{
year: "numeric",

View file

@ -38,8 +38,8 @@ export default {
medium: "Medium",
threepids: "3PIDs",
address: "Adresse",
creation_ts: "Zeitpunkt der Erstellung",
consent_version: "Zugestimmte Bedingungen",
creation_ts_ms: "Zeitpunkt der Erstellung",
consent_version: "Zugestimmte Geschäftsbedingungen",
},
helper: {
deactivate: "Deaktivierte Nutzer können nicht wieder aktiviert werden.",

View file

@ -37,7 +37,7 @@ export default {
medium: "Medium",
threepids: "3PIDs",
address: "Address",
creation_ts: "Creation timestamp",
creation_ts_ms: "Creation timestamp",
consent_version: "Consent version",
},
helper: {

View file

@ -24,7 +24,7 @@ const resourceMap = {
admin: !!u.admin,
deactivated: !!u.deactivated,
// need timestamp in milliseconds
creation_ts: u.creation_ts * 1000,
creation_ts_ms: u.creation_ts * 1000,
}),
data: "users",
total: (json, from, perPage) => {