• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by knoggly · Mar 01, 2010 at 03:47 PM · build-error

Date of EXE-Build is not correct

Hello,

I have a small problem / bug(?). When I build my Unity-App the Date of the EXE-File is about 3 months older than the current date (and its constant). The folder with the data has the correct date. Also webPlayer-Builds have the correct date.

Has anybody experienced something simliar??

regards knoggly

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Motionreactor · Mar 01, 2010 at 04:37 PM 0
Share

Strange, could possibly be a bug. Is this a recent project? perhaps you made a build 3 months ago? Try deleting the .exe and upon re-building hopefully it'll fix up.

2 Replies

· Add your reply
  • Sort: 
avatar image
5
Best Answer

Answer by runevision · Mar 01, 2010 at 05:19 PM

This is not a bug. The exe file simply doesn't change. This is because everything in your game is in the data folder, and the exe file is just the player. So the game is recreated when you build even though the exe file is still the same.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image knoggly · Mar 04, 2010 at 05:23 PM 0
Share

aaah, that makes sense :), thanks

avatar image drhenry · May 10, 2010 at 07:41 AM 0
Share

And how do you check, when you have updated the build at last?

avatar image Noise crime · Jun 22, 2010 at 04:27 PM 0
Share

Just came across this too, every exe i've made in the last month is dated 30.11.09. However what is a bit weird is thats the modification date, whilst looking at the file properties, the actual creation date is correct.

avatar image Xonatron · Jan 14, 2020 at 12:54 AM 1
Share

I have experienced this in a brand new project. I made a project today. Should be dated 2020-01-13, and the build folders are dated this date, however the .exe files are dated 2019-07-19 for some reason. They are brand new as of today.

In the file properties of these .exe files (which is the build .exe and the unity crash handler .exe), it shows the files were created on 2020-01-13 (which is correct) however it shows they were modified on 2019-07-19 (which makes is incorrect and an impossibility).

Can anyone explain?

Unity version 2019.2.0f1.

avatar image Bunny83 Xonatron · Jan 14, 2020 at 01:42 AM 0
Share

You haven't really read the answer, did you? The exe file is not "build" when you build your game. It is just the "player" like the VLC media player or the flash player. It is just "copied" to your build folder. So the version (the actual modification date) is the date of your Unity version and when the player has been created by Unity technologies. When the file is copied the actual file times are just deter$$anonymous$$ed by the file system. The file just has been created but the modification date has been copied from the original. There are even examples of this phenomenon when you look at some of the system files of your windows installation. I also have a lot of files which have a more recent modification date but a quite old last access time which also doesn't make any sense.


I still don't quite get why you are concerned about the dates of the exe which is essentially just a copy of a never changing file. If you want a specific date, use the powershell or other tools to change the date(s)

avatar image
0

Answer by vlab22 · Jan 22, 2019 at 10:59 AM

Put this C# code in Assets folder or any subfolder. It'll update exe's last modification date.


 using System.IO;
 using UnityEditor;
 using UnityEditor.Callbacks;
 
 public class CopyDataFilesPostprocessor
 {
     [PostProcessBuild]
     public static void OnPostprocessBuild (BuildTarget target, string pathToBuiltProject)
     {
         File.SetLastWriteTime(pathToBuiltProject, System.DateTime.Now);
     }
 }
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

How can I stop the variable values reverting to its default values after being built? 1 Answer

Build error -Serialization Weaver 0 Answers

Material/Shader issue 0 Answers

,Hololens Fail to resolve assembly WinRTLegacy 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges