Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to set values within the sys property?

See original GitHub issue

I want to set the creation date of an entry as I am importing from another CMS.

Everything works great except that my values for sys.createdAt are ignored.

My code:

contentfulNews = await environment.createEntryWithId(
    sys: {
      createdAt: newsEntry.created,

Anything I need to do to be able to alter sys.createdAt? I tried to pass a string and a JS-Date object. Both didn’t work.

Thanks a lot, Benedikt

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

dlitvakbcommented, Jan 15, 2020

Will forward the feedback


axe312gercommented, Jan 15, 2020

@dlitvakb hey ho 😃 still around all the time, just as customer, not as employee 🙃

Yeah I see and this makes actually sense.

I will use a field now for publicationDate, this also allows my editors later on to change the field as it will order the blog posts.

Just one thing:

Can you state in the management docs website, that this is api generated metadata and can not be changed? As mentioned above, I think the one sentence is misleading.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set system property? - java - Stack Overflow
You can do this via a couple ways. One is when you run your application, you can pass it a flag. java -Dgate.home="" ......
Read more >
Java System Properties - HowToDoInJava
Java maintains a set of system properties for its operations. You can get all the system properties via System.getProperties() or you can ...
Read more >
System Properties - Essential Java Classes
Writing System Properties ... To modify the existing set of system properties, use System.setProperties . This method takes a Properties object that has...
Read more >
How to Specify a java.lang.system Property - IBM
To set a system property dynamically, call the java.lang.System.setProperty method in your code substituting the appropriate property name and value:
Read more >
How do I set System properties? - Web Tutorials -
Programmatically, a system property can be set using the setProperty method of the System object, and also via the setProperty method of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found