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" helperText="resources.users.helper.deactivate"
/> />
<DateField <DateField
source="creation_ts" source="creation_ts_ms"
showTime showTime
options={{ options={{
year: "numeric", year: "numeric",

View file

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

View file

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

View file

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