-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Describe the Bug
Hello, I ran into a problem that if the language is set to a language other than English, the date field in the publication planning window does not allow changing the date in the text of the field itself, for example: change seconds, year, etc. After leaving the field, it returns the date to the date selected through the picker. Everything works fine for English. For languages I have tested (Russian, Chinese), the date returns to the selected one.
I would also like to ask you to add date formatting to the schedulePublish configuration, not just time, as is done for the date field in collections.
payload.config.ts
// storage-adapter-import-placeholder
import { sqliteAdapter } from '@payloadcms/db-sqlite'
import { payloadCloudPlugin } from '@payloadcms/payload-cloud'
import { lexicalEditor } from '@payloadcms/richtext-lexical'
import path from 'path'
import { buildConfig } from 'payload'
import { fileURLToPath } from 'url'
import sharp from 'sharp'
import { Users } from './collections/Users'
import { Media } from './collections/Media'
import {Categories} from '@/collections/Categories'
import { ru } from '@payloadcms/translations/languages/ru'
const filename = fileURLToPath(import.meta.url)
const dirname = path.dirname(filename)
export default buildConfig({
i18n: {
fallbackLanguage: 'en',
supportedLanguages: { ru },
},
admin: {
user: Users.slug,
importMap: {
baseDir: path.resolve(dirname),
},
},
collections: [Users, Media, Categories],
editor: lexicalEditor(),
secret: process.env.PAYLOAD_SECRET || '',
typescript: {
outputFile: path.resolve(dirname, 'payload-types.ts'),
},
db: sqliteAdapter({
client: {
url: process.env.DATABASE_URI || '',
},
}),
sharp,
plugins: [
payloadCloudPlugin(),
// storage-adapter-placeholder
],
})
Russian language behaviour:
2025-07-18.23.27.17.mov
English (default) language behaviour:
2025-07-18.23.28.05.mov
Link to the code that reproduces this issue
https://github.com/Molju/payloadcms-scheduled-publish-date-bug
Reproduction Steps
- Open admin panel (email: [email protected], password: 123)
- Open
Categories
collection - Select any item
- Open schedule publish window
- Select date and try to edit it in field text (change seconds, hours)
- Comment i18n in root payload config (src/payload.config.ts)
- Try step 5 again
Which area(s) are affected? (Select all that apply)
Not sure
Environment Info
Binaries:
Node: 23.11.0
npm: 10.9.2
Yarn: 1.22.22
pnpm: 9.15.2
Relevant Packages:
payload: 3.48.0
next: 15.3.2
@payloadcms/email-nodemailer: 3.48.0
@payloadcms/graphql: 3.48.0
@payloadcms/next/utilities: 3.48.0
@payloadcms/payload-cloud: 3.48.0
@payloadcms/richtext-lexical: 3.48.0
@payloadcms/translations: 3.48.0
@payloadcms/ui/shared: 3.48.0
react: 19.1.0
react-dom: 19.1.0
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000
Available memory (MB): 16384
Available CPU cores: 10