Skip to content

update Internal Timestamp #26

Description

@default-kramer

It's nice if the tool-modified file is selected by default. Can be done like this: https://github.com/playinful/DQB2_WorldEdit/blob/50edd29b1617fc6548d0f840459217609f745f72/Scripts/SaveData/CommonData.cs#L38

public DateTime LastSaveTime { get => DateTime.FromFileTime(GetInt64(0x2A40D, header: true)); set => SetInt64(0x2A40D, value.ToFileTime(), header: true); }

Note: confirmed that the save file holds the UTC time, and the displayed time is adjusted based on the user's time zone. So probably should be using ToFileTimeUtc() and FromFileTimeUtc() instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions