Manav Rathi
d59d3c3b07
grandfather
2025-02-19 17:40:43 +05:30
Manav Rathi
b931dac18b
Doc
2025-02-14 11:30:32 +05:30
Manav Rathi
3863591d26
accessor
2025-02-04 11:49:19 +05:30
Manav Rathi
f7c8a563a9
[web] Match mobile behaviour for archived files in all
2025-01-30 19:57:14 +05:30
Manav Rathi
aae2632b19
See: [Note: strict mode migration]
2024-12-26 18:28:54 +05:30
Manav Rathi
dca6e02286
Move
2024-12-26 17:52:26 +05:30
Manav Rathi
1b863005ea
Ref
2024-12-26 17:11:48 +05:30
Manav Rathi
5b4028378b
Retain all collections associated
2024-12-26 11:20:45 +05:30
Manav Rathi
e5fe3a7255
size
2024-12-24 16:28:16 +05:30
Manav Rathi
54f9bd880a
Funnel
2024-12-24 15:43:14 +05:30
Manav Rathi
24674f6da6
Notes and changes based on discussion
...
The hash change now matches mobile
2024-12-24 15:25:03 +05:30
Manav Rathi
8a217a292b
Comments
2024-12-24 14:18:31 +05:30
Manav Rathi
1d02732719
Impl
2024-12-20 11:43:07 +05:30
Manav Rathi
1a2de5b81c
[web] Send file size when creating files
2024-11-26 10:33:03 +05:30
Manav Rathi
a91626aa89
Sep
2024-11-23 05:54:25 +05:30
Manav Rathi
33183412cb
Prune
2024-11-23 05:01:38 +05:30
Manav Rathi
3b2bc8769f
Move force conversion decision to the converter
2024-11-22 18:14:12 +05:30
Manav Rathi
7c163a1a7f
Doc
2024-11-22 14:50:55 +05:30
Manav Rathi
057bd3a4d2
Retain more info
...
Also invent a new scheme for passing around this data instead of piggy backing
on the JSON route, since the JSON route has other complications (e.g. it strips
off the "-edited" prefix) that we'd anyways would've needed to workaround.
2024-11-15 10:31:16 +05:30
Manav Rathi
5d9e37730f
Move
2024-10-15 09:06:31 +05:30
Manav Rathi
1df253d41a
Move
2024-10-15 09:02:35 +05:30
Manav Rathi
3a4e798e1e
Move
2024-10-15 09:00:11 +05:30
Manav Rathi
97eaafc67c
Doc
2024-10-15 08:53:07 +05:30
Manav Rathi
80f5cf0f66
Move
2024-10-15 08:40:46 +05:30
Manav Rathi
487fd62feb
Rearrange
2024-07-27 20:00:34 +05:30
Manav Rathi
26c40ab2ec
Test
...
Chrome, Safari, Firefox, Node.js (macOS)
const parseMetadataDate = (s) => {
const timestamp = new Date(s).getTime() * 1000;
if (isNaN(timestamp)) return undefined;
let offsetTime;
let sWithoutOffset;
const m = s.match(/Z|[+-]\d\d:?\d\d$/);
if (m?.index) {
sWithoutOffset = s.substring(0, m.index);
offsetTime = s.substring(m.index);
} else {
sWithoutOffset = s;
}
const date = new Date(
sWithoutOffset + (sWithoutOffset.length <= 10 ? "" : "Z"),
);
const dateTime = dropLast(date.toISOString());
return { dateTime, offsetTime, timestamp };
};
const dropLast = (s) => (s ? s.substring(0, s.length - 1) : s);
const test = () => {
console.log(parseMetadataDate("2023"));
console.log(parseMetadataDate("2023-08"));
console.log(parseMetadataDate("2023-08-23"));
console.log(parseMetadataDate("2023-08-23T18:03:00"));
console.log(parseMetadataDate("2023-08-23T18:03:00+05:30"));
console.log(parseMetadataDate("2023-08-23T18:03:00.000+05:30"));
console.log(parseMetadataDate("2023-08-23T12:33:00.000Z"));
};
test();
2024-07-27 19:45:15 +05:30
Manav Rathi
4deb9c8f13
Impl wip
2024-07-27 19:22:41 +05:30
Manav Rathi
74c5b22927
Outline
2024-07-27 17:42:54 +05:30
Manav Rathi
17275ed29d
Inline
2024-04-27 18:03:09 +05:30
Manav Rathi
f3c798148c
type-detect
2024-04-24 18:06:52 +05:30
Manav Rathi
58d2670171
Prune
2024-04-24 11:29:54 +05:30